artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a2428f0
)
simple program using "stdio rpath"
author
deraadt
<deraadt@openbsd.org>
Sat, 10 Oct 2015 05:43:48 +0000
(
05:43
+0000)
committer
deraadt
<deraadt@openbsd.org>
Sat, 10 Oct 2015 05:43:48 +0000
(
05:43
+0000)
ok doug
usr.bin/getcap/getcap.c
patch
|
blob
|
history
diff --git
a/usr.bin/getcap/getcap.c
b/usr.bin/getcap/getcap.c
index
c282157
..
79cefdf
100644
(file)
--- a/
usr.bin/getcap/getcap.c
+++ b/
usr.bin/getcap/getcap.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: getcap.c,v 1.
5 2015/09/25 16:23:18 schwarze Exp $
*/
+/* $OpenBSD: getcap.c,v 1.
6 2015/10/10 05:43:48 deraadt Exp $
*/
/*
* Copyright (c) 2005 Todd C. Miller <Todd.Miller@courtesan.com>
@@
-40,6
+40,9
@@
main(int argc, char *argv[])
char *cp, *buf, *cap = NULL, **pathvec = NULL;
size_t n;
+ if (pledge("stdio rpath", NULL) == -1)
+ err(1, "pledge");
+
aflag = type = 0;
while ((ch = getopt(argc, argv, "ab:c:f:n:s:")) != -1) {
switch (ch) {