From ea2998e0ae13862aa6d22fefe41304cff838ae61 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Mon, 5 Oct 2015 06:57:02 +0000 Subject: tame "stdio rpath wpath cpath fattr", because this creates new files, fchmod's them, and possibly renames them. ok doug --- usr.bin/unifdef/unifdef.c | 3 +++ 1 file changed, 3 insertions(+) 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 */ -- cgit v1.2.3