diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-10-10 15:47:23 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-10-10 15:47:23 +0000 |
commit | 1c5893c0209db85f19d70e4f9547352c29ab820c (patch) | |
tree | 17602aac601008656a1db0af0b9bc85f45adc0f9 /usr.bin/tsort | |
parent | e7779eb24be7bd9a8ce6a9474c6e66b08111d907 (diff) |
basic pledge "stdio rpath"
ok doug
Diffstat (limited to 'usr.bin/tsort')
-rw-r--r-- | usr.bin/tsort/tsort.c | 5 |
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); } |