diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2016-06-13 09:54:02 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2016-06-13 09:54:02 +0000 |
commit | 4ff8b7fb051b7c23e55ffe1e208c374abb678d64 (patch) | |
tree | cf7aaa3c020cd01208fad98e7911bdfff04fc43d /sbin/disklabel | |
parent | fd7b30cc9044595b8ee6cfc9b679f181185a38a6 (diff) |
correct pledge for disklabel -R -[fF]
ok tb@
Diffstat (limited to 'sbin/disklabel')
-rw-r--r-- | sbin/disklabel/disklabel.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sbin/disklabel/disklabel.c b/sbin/disklabel/disklabel.c index 38e785efd07..27081971b14 100644 --- a/sbin/disklabel/disklabel.c +++ b/sbin/disklabel/disklabel.c @@ -1,4 +1,4 @@ -/* $OpenBSD: disklabel.c,v 1.220 2016/06/01 16:51:54 tb Exp $ */ +/* $OpenBSD: disklabel.c,v 1.221 2016/06/13 09:54:01 jsg Exp $ */ /* * Copyright (c) 1987, 1993 @@ -219,6 +219,9 @@ main(int argc, char *argv[]) if (op == EDIT || op == EDITOR || aflag) { if (pledge("stdio rpath wpath cpath disklabel proc exec", NULL) == -1) err(1, "pledge"); + } else if (fstabfile) { + if (pledge("stdio rpath wpath cpath disklabel", NULL) == -1) + err(1, "pledge"); } else { if (pledge("stdio rpath wpath disklabel", NULL) == -1) err(1, "pledge"); |