diff options
author | 2015-10-06 15:39:44 +0000 | |
---|---|---|
committer | 2015-10-06 15:39:44 +0000 | |
commit | 350a56c6d0b3f4e22d3e31f240aba375864da78d (patch) | |
tree | 48bbf93c90e6a5eb33b51e473a04b88cde556cf8 /usr.bin/file/file.c | |
parent | add some tests for rpath, wpath, cpath (diff) | |
download | wireguard-openbsd-350a56c6d0b3f4e22d3e31f240aba375864da78d.tar.xz wireguard-openbsd-350a56c6d0b3f4e22d3e31f240aba375864da78d.zip |
Move from tame "cmsg" to tame "sendfd" or "recvfd", depending on which
way the process moves fd's.
Diffstat (limited to 'usr.bin/file/file.c')
-rw-r--r-- | usr.bin/file/file.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/file/file.c b/usr.bin/file/file.c index f6e13e9bca1..1ac228c3f91 100644 --- a/usr.bin/file/file.c +++ b/usr.bin/file/file.c @@ -1,4 +1,4 @@ -/* $OpenBSD: file.c,v 1.50 2015/10/05 06:23:34 deraadt Exp $ */ +/* $OpenBSD: file.c,v 1.51 2015/10/06 15:39:44 deraadt Exp $ */ /* * Copyright (c) 2015 Nicholas Marriott <nicm@openbsd.org> @@ -351,7 +351,7 @@ child(int fd, pid_t parent, int argc, char **argv) int i, idx; size_t len, width = 0; - if (tame("stdio cmsg getpw proc", NULL) == -1) + if (tame("stdio getpw proc recvfd", NULL) == -1) err(1, "tame"); if (geteuid() == 0) { @@ -366,7 +366,7 @@ child(int fd, pid_t parent, int argc, char **argv) err(1, "setresuid"); } - if (tame("stdio cmsg", NULL) == -1) + if (tame("stdio recvfd", NULL) == -1) err(1, "tame"); m = magic_load(magicfp, magicpath, cflag || Wflag); |