diff options
author | Ricardo Mestre <mestre@cvs.openbsd.org> | 2016-11-08 09:44:00 +0000 |
---|---|---|
committer | Ricardo Mestre <mestre@cvs.openbsd.org> | 2016-11-08 09:44:00 +0000 |
commit | 15fdee5c6e630ce567a8c5ead93983c70bf90666 (patch) | |
tree | 8c36ad2b823e0a973ad1b14aa6574b4e1cf08c2a /usr.sbin | |
parent | 34961a456d14dff35dc006bc934fbf1861c6619b (diff) |
pledge for "stdio rpath wpath cpath" promises since it only needs to
read/write/create files
OK natano@ and tb@, thank you both for noticing the bad indentation
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/makefs/makefs.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.sbin/makefs/makefs.c b/usr.sbin/makefs/makefs.c index 38223e3b347..60a108ce55f 100644 --- a/usr.sbin/makefs/makefs.c +++ b/usr.sbin/makefs/makefs.c @@ -1,4 +1,4 @@ -/* $OpenBSD: makefs.c,v 1.17 2016/10/26 07:53:47 natano Exp $ */ +/* $OpenBSD: makefs.c,v 1.18 2016/11/08 09:43:59 mestre Exp $ */ /* $NetBSD: makefs.c,v 1.53 2015/11/27 15:10:32 joerg Exp $ */ /* @@ -198,6 +198,9 @@ main(int argc, char *argv[]) if (argc != 2) usage(); + if (pledge("stdio rpath wpath cpath", NULL) == -1) + err(1, "pledge"); + /* walk the tree */ root = walk_dir(argv[1], ".", NULL, NULL); |