mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-12-19 22:43:22 +01:00
fcntl(..., F_SETLKW, ...) takes a pointer to a struct flock just like
F_SETLK does, so it also needs this structure copied in in fnctl() before calling kern_fcntl().
This commit is contained in:
parent
4f0db5e08c
commit
dde1c2c0d6
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=103368
@ -221,6 +221,7 @@ fcntl(td, uap)
|
||||
|
||||
error = 0;
|
||||
switch (uap->cmd) {
|
||||
case F_SETLKW:
|
||||
case F_SETLK:
|
||||
case F_GETLK:
|
||||
error = copyin((caddr_t)(intptr_t)uap->arg, &fl, sizeof(fl));
|
||||
|
Loading…
Reference in New Issue
Block a user