diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-11-25 00:29:16 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-11-25 00:29:16 +0000 |
commit | c8f83c6713ed5cc76f9c30e92b0b0af50a71736e (patch) | |
tree | 301c34c30cafd09b9b9811d6913fef4d14428bc9 /sbin | |
parent | b1948dc6fabc9f57b7334e7a58bc9504484a4fb2 (diff) |
Do not do the early pledge, because hotroot() is a lie. fsck_extfs
is not correct duid-aware by itself.
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/fsck_ext2fs/main.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/sbin/fsck_ext2fs/main.c b/sbin/fsck_ext2fs/main.c index f7c38ce4956..98bd95f0ddd 100644 --- a/sbin/fsck_ext2fs/main.c +++ b/sbin/fsck_ext2fs/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.25 2015/11/23 23:01:20 deraadt Exp $ */ +/* $OpenBSD: main.c,v 1.26 2015/11/25 00:29:15 deraadt Exp $ */ /* $NetBSD: main.c,v 1.1 1997/06/11 11:21:50 bouyer Exp $ */ /* @@ -158,10 +158,6 @@ checkfilesys(char *filesys, char *mntpt, long auxdata, int child) if (debug && preen) pwarn("starting\n"); - if (!hotroot()) - if (pledge("stdio rpath wpath getpw disklabel", NULL) == -1) - err(1, "pledge"); - switch (setup(filesys)) { case 0: if (preen) |