summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2015-08-06 18:28:15 +0000
committerjhb <jhb@FreeBSD.org>2015-08-06 18:28:15 +0000
commitb47f719fc8d01ec8fc886f2c87870f187a694e71 (patch)
tree10d46cbc5fdc0769354e51a3c59148645a73c26a /usr.bin
parent7be4a5502cc3c1496eb01a15c154e4adafdd9386 (diff)
downloadFreeBSD-src-b47f719fc8d01ec8fc886f2c87870f187a694e71.zip
FreeBSD-src-b47f719fc8d01ec8fc886f2c87870f187a694e71.tar.gz
Don't mark the fcntl flag argument as an output parameter so that it is
always decoded. Previously the argument was not decoded if fcntl() failed.
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/truss/syscalls.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/truss/syscalls.c b/usr.bin/truss/syscalls.c
index e8eea83..9ee8bb1 100644
--- a/usr.bin/truss/syscalls.c
+++ b/usr.bin/truss/syscalls.c
@@ -93,7 +93,7 @@ static const char rcsid[] =
*/
static struct syscall syscalls[] = {
{ .name = "fcntl", .ret_type = 1, .nargs = 3,
- .args = { { Int, 0 }, { Fcntl, 1 }, { Fcntlflag | OUT, 2 } } },
+ .args = { { Int, 0 }, { Fcntl, 1 }, { Fcntlflag, 2 } } },
{ .name = "fork", .ret_type = 1, .nargs = 0 },
{ .name = "vfork", .ret_type = 1, .nargs = 0 },
{ .name = "rfork", .ret_type = 1, .nargs = 1,
OpenPOWER on IntegriCloud