diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-10-05 06:57:02 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-10-05 06:57:02 +0000 |
commit | ea2998e0ae13862aa6d22fefe41304cff838ae61 (patch) | |
tree | 74fac71f0f288510a09ef04dd57e583781396745 | |
parent | 54bfb2c914ead4f3c4593d944f07d6cc4123d9ad (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.c | 3 |
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 */ |