summaryrefslogtreecommitdiff
path: root/usr.bin/tsort
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2015-10-10 15:47:23 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2015-10-10 15:47:23 +0000
commit1c5893c0209db85f19d70e4f9547352c29ab820c (patch)
tree17602aac601008656a1db0af0b9bc85f45adc0f9 /usr.bin/tsort
parente7779eb24be7bd9a8ce6a9474c6e66b08111d907 (diff)
basic pledge "stdio rpath"
ok doug
Diffstat (limited to 'usr.bin/tsort')
-rw-r--r--usr.bin/tsort/tsort.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.bin/tsort/tsort.c b/usr.bin/tsort/tsort.c
index da5782ebc62..442591a7cde 100644
--- 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);
}