summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo Buehler <tb@cvs.openbsd.org>2016-10-12 00:31:07 +0000
committerTheo Buehler <tb@cvs.openbsd.org>2016-10-12 00:31:07 +0000
commit7d4b3f3e0d7e1b4d759b8b700baf7a1139f10961 (patch)
tree62e91bf064b2bdb381d4590e446f84e9304d6bd5
parentbc2fa1cd4f6597102b4c1e37dafa85a8b347b29b (diff)
make -t uses the "fattr" syscall utimes(2) for its touch(1) built-in.
Thus, add "fattr" to the list of pledge promises. ok millert, deraadt
-rw-r--r--usr.bin/make/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/make/main.c b/usr.bin/make/main.c
index ac2402c2b50..be4f93c97e9 100644
--- a/usr.bin/make/main.c
+++ b/usr.bin/make/main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: main.c,v 1.119 2016/01/04 10:59:23 tb Exp $ */
+/* $OpenBSD: main.c,v 1.120 2016/10/12 00:31:06 tb Exp $ */
/* $NetBSD: main.c,v 1.34 1997/03/24 20:56:36 gwr Exp $ */
/*
@@ -190,7 +190,7 @@ MainParseArgs(int argc, char **argv)
#define OPTFLAGS "BC:D:I:SV:d:ef:ij:km:npqrst"
#define OPTLETTERS "BSiknpqrst"
- if (pledge("stdio rpath wpath cpath proc exec", NULL) == -1)
+ if (pledge("stdio rpath wpath cpath fattr proc exec", NULL) == -1)
err(2, "pledge");
optind = 1; /* since we're called more than once */