Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Jan 2015 10:43:59 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r277211 - head/sys/compat/freebsd32
Message-ID:  <201501151043.t0FAhxrh099114@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201501151043.t0FAhxrh099114>