diff options
-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); |