summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2015-10-28 20:17:32 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2015-10-28 20:17:32 +0000
commitd31dcdb2d2aa09b7ed8e0b6659a49e4ed75a3091 (patch)
tree137c524a5f88ddd9058eb8d08cc0b083660d7bcb /usr.bin
parentfe321675b65ff8cd9d215af4417b7c1b934784d3 (diff)
pledge
ok millert
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/at/at.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.bin/at/at.c b/usr.bin/at/at.c
index e9c8528415d..c4ed2460f1e 100644
--- a/usr.bin/at/at.c
+++ b/usr.bin/at/at.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: at.c,v 1.65 2015/08/20 22:32:41 deraadt Exp $ */
+/* $OpenBSD: at.c,v 1.66 2015/10/28 20:17:31 deraadt Exp $ */
/*
* at.c : Put file into atrun queue
@@ -930,6 +930,10 @@ main(int argc, char **argv)
int cflag = 0;
int nflag = 0;
+ if (pledge("stdio rpath wpath cpath fattr getpw unix flock id",
+ NULL) == -1)
+ perr("pledge");
+
if (argc < 1)
usage();