svn commit: r277211 - head/sys/compat/freebsd32

Konstantin Belousov kib at FreeBSD.org
Thu Jan 15 10:43:59 UTC 2015


Author: kib
Date: Thu Jan 15 10:43:58 2015
New Revision: 277211
URL: https://svnweb.freebsd.org/changeset/base/277211

Log:
  fcntl F_O{GET,SET}LK take pointer as the arg, handle them properly for
  compat32.
  
  Reported and tested by:	Alex Tutubalin <lexa at lexa.ru>
  Sponsored by:	The FreeBSD Foundation
  MFC after:	1 week

Modified:
  head/sys/compat/freebsd32/freebsd32_misc.c

Modified: head/sys/compat/freebsd32/freebsd32_misc.c
==============================================================================
--- head/sys/compat/freebsd32/freebsd32_misc.c	Thu Jan 15 06:14:42 2015	(r277210)
+++ head/sys/compat/freebsd32/freebsd32_misc.c	Thu Jan 15 10:43:58 2015	(r277211)
@@ -3032,6 +3032,9 @@ freebsd32_fcntl(struct thread *td, struc
 	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:


More information about the svn-src-head mailing list