diff options
author | Theo Buehler <tb@cvs.openbsd.org> | 2016-05-28 23:44:28 +0000 |
---|---|---|
committer | Theo Buehler <tb@cvs.openbsd.org> | 2016-05-28 23:44:28 +0000 |
commit | 6c73d4ff732a662c5837a15f9c09a035cee56c71 (patch) | |
tree | b6c8538c58ed70eb90cc78b00f47119f7167c57f | |
parent | 00d19c1c61497b4ff9a47224b396162f3d0e6cef (diff) |
Don't pledge before opendev. Just leave pledge "stdio" right
afterwards.
deraadt agrees
-rw-r--r-- | sbin/tunefs/tunefs.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/sbin/tunefs/tunefs.c b/sbin/tunefs/tunefs.c index 30991f047bb..2aa7bbbd4f5 100644 --- a/sbin/tunefs/tunefs.c +++ b/sbin/tunefs/tunefs.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tunefs.c,v 1.40 2015/12/09 01:08:31 jsg Exp $ */ +/* $OpenBSD: tunefs.c,v 1.41 2016/05/28 23:44:27 tb Exp $ */ /* $NetBSD: tunefs.c,v 1.33 2005/01/19 20:46:16 xtraeme Exp $ */ /* @@ -147,14 +147,6 @@ main(int argc, char *argv[]) if (argc != 1) usage(); - if (Nflag) { - if (pledge("stdio rpath disklabel", NULL) == -1) - err(1, "pledge"); - } else { - if (pledge("stdio rpath wpath disklabel", NULL) == -1) - err(1, "pledge"); - } - special = argv[0]; openflags = Nflag ? O_RDONLY : O_RDWR; if (Fflag) |