summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2015-10-05 06:57:02 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2015-10-05 06:57:02 +0000
commitea2998e0ae13862aa6d22fefe41304cff838ae61 (patch)
tree74fac71f0f288510a09ef04dd57e583781396745
parent54bfb2c914ead4f3c4593d944f07d6cc4123d9ad (diff)
tame "stdio rpath wpath cpath fattr", because this creates new files,
fchmod's them, and possibly renames them. ok doug
-rw-r--r--usr.bin/unifdef/unifdef.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/usr.bin/unifdef/unifdef.c b/usr.bin/unifdef/unifdef.c
index 68bead76e5d..4a08dc2d764 100644
--- a/usr.bin/unifdef/unifdef.c
+++ b/usr.bin/unifdef/unifdef.c
@@ -265,6 +265,9 @@ main(int argc, char *argv[])
const char *errstr;
int opt;
+ if (tame("stdio rpath wpath cpath fattr", NULL) == -1)
+ err(1, "tame");
+
while ((opt = getopt(argc, argv, "i:D:U:f:I:M:o:x:bBcdehKklmnsStV")) != -1)
switch (opt) {
case 'i': /* treat stuff controlled by these symbols as text */