diff options
author | jhb <jhb@FreeBSD.org> | 2015-08-06 18:28:15 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2015-08-06 18:28:15 +0000 |
commit | b47f719fc8d01ec8fc886f2c87870f187a694e71 (patch) | |
tree | 10d46cbc5fdc0769354e51a3c59148645a73c26a /usr.bin/truss | |
parent | 7be4a5502cc3c1496eb01a15c154e4adafdd9386 (diff) | |
download | FreeBSD-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/truss')
-rw-r--r-- | usr.bin/truss/syscalls.c | 2 |
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, |