diff options
author | kib <kib@FreeBSD.org> | 2015-01-15 10:43:58 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2015-01-15 10:43:58 +0000 |
commit | 631f2ce1dd5633cb767c295b04a3f3d45522b530 (patch) | |
tree | 1163218ef27ede6f1fb8a121621c24479963ff7b /sys/compat | |
parent | 31bdd499d9729ec6f07e1dc4e06921207bcd2a64 (diff) | |
download | FreeBSD-src-631f2ce1dd5633cb767c295b04a3f3d45522b530.zip FreeBSD-src-631f2ce1dd5633cb767c295b04a3f3d45522b530.tar.gz |
fcntl F_O{GET,SET}LK take pointer as the arg, handle them properly for
compat32.
Reported and tested by: Alex Tutubalin <lexa@lexa.ru>
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Diffstat (limited to 'sys/compat')
-rw-r--r-- | sys/compat/freebsd32/freebsd32_misc.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/compat/freebsd32/freebsd32_misc.c b/sys/compat/freebsd32/freebsd32_misc.c index 1457f57..ba8c2ff 100644 --- a/sys/compat/freebsd32/freebsd32_misc.c +++ b/sys/compat/freebsd32/freebsd32_misc.c @@ -3032,6 +3032,9 @@ freebsd32_fcntl(struct thread *td, struct freebsd32_fcntl_args *uap) case F_GETLK: case F_SETFD: case F_SETFL: + case F_OGETLK: + case F_OSETLK: + case F_OSETLKW: tmp = (unsigned int)(uap->arg); break; default: |