diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-10-10 05:32:53 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-10-10 05:32:53 +0000 |
commit | bf9f8c3bde89dcc1d1e4e28fdc0e2bac85172acd (patch) | |
tree | 3bcd94b566014b568127c7e59d0bd2c25b20c5e1 | |
parent | ae4667981636115420e9e8503cc2938f4e6892db (diff) |
pledge to only use "stdio rpath"; ok doug
-rw-r--r-- | usr.bin/du/du.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.bin/du/du.c b/usr.bin/du/du.c index 51f48360e53..95b409cbfb2 100644 --- a/usr.bin/du/du.c +++ b/usr.bin/du/du.c @@ -1,4 +1,4 @@ -/* $OpenBSD: du.c,v 1.30 2015/06/25 02:04:08 uebayasi Exp $ */ +/* $OpenBSD: du.c,v 1.31 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; |