artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a625255
)
pledge "stdio getpw rpath wpath cpath fattr". doug pointed out getpw*
author
deraadt
<deraadt@openbsd.org>
Sat, 10 Oct 2015 18:58:53 +0000
(18:58 +0000)
committer
deraadt
<deraadt@openbsd.org>
Sat, 10 Oct 2015 18:58:53 +0000
(18:58 +0000)
use, and fattr for chmod.
doug
usr.bin/rcs/rcsprog.c
patch
|
blob
|
history
diff --git
a/usr.bin/rcs/rcsprog.c
b/usr.bin/rcs/rcsprog.c
index
adad6a1
..
f6a1996
100644
(file)
--- a/
usr.bin/rcs/rcsprog.c
+++ b/
usr.bin/rcs/rcsprog.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: rcsprog.c,v 1.15
6 2015/06/13 20:15:21 nicm Exp $
*/
+/* $OpenBSD: rcsprog.c,v 1.15
7 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);