summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2015-10-10 18:58:54 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2015-10-10 18:58:54 +0000
commit11abec2e94d6e8c4fe21fbf69e4a7aa125f3f1c9 (patch)
tree9efcebccef02ebe1b48eee3b95424f09d367c463 /usr.bin
parent1b03d9a3c3dc955eb276fae6414e702b72f08897 (diff)
pledge "stdio getpw rpath wpath cpath fattr". doug pointed out getpw*
use, and fattr for chmod. doug
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/rcs/rcsprog.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.bin/rcs/rcsprog.c b/usr.bin/rcs/rcsprog.c
index adad6a1d596..f6a1996abf3 100644
--- a/usr.bin/rcs/rcsprog.c
+++ b/usr.bin/rcs/rcsprog.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rcsprog.c,v 1.156 2015/06/13 20:15:21 nicm Exp $ */
+/* $OpenBSD: rcsprog.c,v 1.157 2015/10/10 18:58:53 deraadt Exp $ */
/*
* Copyright (c) 2005 Jean-Francois Brousseau <jfb@openbsd.org>
* All rights reserved.
@@ -128,6 +128,9 @@ main(int argc, char **argv)
char **cmd_argv;
int ret, cmd_argc;
+ if (pledge("stdio getpw rpath wpath cpath fattr", NULL) == -1)
+ err(1, "pledge");
+
ret = -1;
rcs_optind = 1;
SLIST_INIT(&temp_files);