From b47f719fc8d01ec8fc886f2c87870f187a694e71 Mon Sep 17 00:00:00 2001 From: jhb Date: Thu, 6 Aug 2015 18:28:15 +0000 Subject: 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. --- usr.bin/truss/syscalls.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr.bin/truss') 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, -- cgit v1.1