Bug 196714 - fcntl() broken for 32bit binaries
Summary: fcntl() broken for 32bit binaries
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 10.1-STABLE
Hardware: Any Any
: --- Affects Many People
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-01-14 10:20 UTC by walter
Modified: 2015-07-08 12:52 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description walter 2015-01-14 10:20:44 UTC
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);
Comment 1 Glen Barber freebsd_committer freebsd_triage 2015-07-08 12:52:05 UTC
Resolved in head@r277211 and stable/10@r277525.

Thank you for the report.