artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9ecf7f5
)
basic pledge "stdio rpath"
author
deraadt
<deraadt@openbsd.org>
Sat, 10 Oct 2015 15:47:22 +0000
(15:47 +0000)
committer
deraadt
<deraadt@openbsd.org>
Sat, 10 Oct 2015 15:47:22 +0000
(15:47 +0000)
ok doug
usr.bin/tsort/tsort.c
patch
|
blob
|
history
diff --git
a/usr.bin/tsort/tsort.c
b/usr.bin/tsort/tsort.c
index
da5782e
..
442591a
100644
(file)
--- a/
usr.bin/tsort/tsort.c
+++ b/
usr.bin/tsort/tsort.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: tsort.c,v 1.
29 2015/09/03 11:16:50 espie
Exp $ */
+/* $OpenBSD: tsort.c,v 1.
30 2015/10/10 15:47:22 deraadt
Exp $ */
/* ex:ts=8 sw=4:
*
* Copyright (c) 1999-2004 Marc Espie <espie@openbsd.org>
@@
-977,6
+977,9
@@
main(int argc, char *argv[])
{
struct ohash pairs;
+ if (pledge("stdio rpath", NULL) == -1)
+ err(1, "pledge");
+
parse_args(argc, argv, &pairs);
return tsort(&pairs);
}