artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
20bf8b6
)
pledge to only use "stdio rpath"; ok doug
author
deraadt
<deraadt@openbsd.org>
Sat, 10 Oct 2015 05:32:52 +0000
(
05:32
+0000)
committer
deraadt
<deraadt@openbsd.org>
Sat, 10 Oct 2015 05:32:52 +0000
(
05:32
+0000)
usr.bin/du/du.c
patch
|
blob
|
history
diff --git
a/usr.bin/du/du.c
b/usr.bin/du/du.c
index
51f4836
..
95b409c
100644
(file)
--- a/
usr.bin/du/du.c
+++ b/
usr.bin/du/du.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: du.c,v 1.3
0 2015/06/25 02:04:08 uebayasi Exp $
*/
+/* $OpenBSD: du.c,v 1.3
1 2015/10/10 05:32:52 deraadt Exp $
*/
/* $NetBSD: du.c,v 1.11 1996/10/18 07:20:35 thorpej Exp $ */
/*
@@
-66,6
+66,9
@@
main(int argc, char *argv[])
char **save;
const char *errstr;
+ if (pledge("stdio rpath", NULL) == -1)
+ err(1, "pledge");
+
save = argv;
Hflag = Lflag = cflag = hflag = kflag = listfiles = 0;
totalblocks = 0;