artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c9a21f1
)
fairly simple pledge to "stdio rpath wpath cpath"
author
deraadt
<deraadt@openbsd.org>
Sat, 10 Oct 2015 14:23:12 +0000
(14:23 +0000)
committer
deraadt
<deraadt@openbsd.org>
Sat, 10 Oct 2015 14:23:12 +0000
(14:23 +0000)
usr.bin/lndir/lndir.c
patch
|
blob
|
history
diff --git
a/usr.bin/lndir/lndir.c
b/usr.bin/lndir/lndir.c
index
75bcc45
..
cb2369c
100644
(file)
--- a/
usr.bin/lndir/lndir.c
+++ b/
usr.bin/lndir/lndir.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: lndir.c,v 1.2
1 2015/01/16 06:40:09
deraadt Exp $ */
+/* $OpenBSD: lndir.c,v 1.2
2 2015/10/10 14:23:12
deraadt Exp $ */
/* $XConsortium: lndir.c /main/15 1995/08/30 10:56:18 gildea $ */
/*
@@
-85,6
+85,9
@@
main(int argc, char *argv[])
struct stat fs, ts;
char *fn, *tn;
+ if (pledge("stdio rpath wpath cpath", NULL) == -1)
+ err(1, "pledge");
+
while (++argv, --argc) {
if ((strcmp(*argv, "-silent") == 0) ||
(strcmp(*argv, "-s") == 0))