Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Jan 2015 10:20:44 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 196714] fcntl() broken for 32bit binaries
Message-ID:  <bug-196714-8@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=196714

            Bug ID: 196714
           Summary: fcntl() broken for 32bit binaries
           Product: Base System
           Version: 10.1-STABLE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: kern
          Assignee: freebsd-bugs@FreeBSD.org
          Reporter: walter@pelissero.de

There is a missing typecast in freebsd32_fcntl() that shows up upon use of the
(old) lock primitives.
Here is the patch:

--- freebsd32_misc.c    (revision 276910)
+++ freebsd32_misc.c    (working copy)
@@ -3135,6 +3135,9 @@
     case F_SETLKW:
     case F_SETLK:
     case F_GETLK:
+    case F_OSETLKW:
+    case F_OSETLK:
+    case F_OGETLK:
     case F_SETFD:
     case F_SETFL:
         tmp = (unsigned int)(uap->arg);

-- 
You are receiving this mail because:
You are the assignee for the bug.



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