summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2015-08-06 18:32:32 +0000
committerjhb <jhb@FreeBSD.org>2015-08-06 18:32:32 +0000
commit6d1ad63fa50d27979df493c71c60d10a80cd2b70 (patch)
tree17402f0165d2ddbba55c719ffeb177a23727081e /usr.bin
parentb47f719fc8d01ec8fc886f2c87870f187a694e71 (diff)
downloadFreeBSD-src-6d1ad63fa50d27979df493c71c60d10a80cd2b70.zip
FreeBSD-src-6d1ad63fa50d27979df493c71c60d10a80cd2b70.tar.gz
Decode the arguments to mkfifo() and fix an off-by-one error in the arguments
to mknod().
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/truss/syscalls.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/truss/syscalls.c b/usr.bin/truss/syscalls.c
index 9ee8bb1..59b8cf2 100644
--- a/usr.bin/truss/syscalls.c
+++ b/usr.bin/truss/syscalls.c
@@ -141,8 +141,10 @@ static struct syscall syscalls[] = {
.args = { { Name, 0 } } },
{ .name = "chroot", .ret_type = 0, .nargs = 1,
.args = { { Name, 0 } } },
+ { .name = "mkfifo", .ret_type = 0, .nargs = 2,
+ .args = { { Name, 0 }, { Octal, 1 } } },
{ .name = "mknod", .ret_type = 0, .nargs = 3,
- .args = { { Name, 0 }, { Octal, 1 }, { Int, 3 } } },
+ .args = { { Name, 0 }, { Octal, 1 }, { Int, 2 } } },
{ .name = "chmod", .ret_type = 0, .nargs = 2,
.args = { { Name, 0 }, { Octal, 1 } } },
{ .name = "chown", .ret_type = 0, .nargs = 3,
OpenPOWER on IntegriCloud