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:
Thomas Moestl 2002-09-16 01:05:15 +00:00
parent 4f0db5e08c
commit dde1c2c0d6
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=103368

View File

@ -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));