From d06f1a4caba881ba335256dd92ba73804fa86c85 Mon Sep 17 00:00:00 2001 From: Theo Buehler Date: Sat, 28 May 2016 18:00:43 +0000 Subject: Another misplaced pledge disklabel that needs to be removed because of a DIOCGPDINFO that could be applied to a non-disk and thus cause a crash. After that ioctl, the program continues with pledge "stdio". ok beck semarie --- sbin/fsck_msdos/main.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'sbin/fsck_msdos/main.c') diff --git a/sbin/fsck_msdos/main.c b/sbin/fsck_msdos/main.c index 8ea0f2e7c34..0f4d62123ab 100644 --- a/sbin/fsck_msdos/main.c +++ b/sbin/fsck_msdos/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.22 2015/11/23 19:19:30 deraadt Exp $ */ +/* $OpenBSD: main.c,v 1.23 2016/05/28 18:00:42 tb Exp $ */ /* $NetBSD: main.c,v 1.8 1996/10/17 20:29:53 cgd Exp $ */ /* @@ -57,9 +57,6 @@ main(int argc, char *argv[]) { int ch; - if (pledge("stdio rpath wpath disklabel", NULL) == -1) - err(1, "pledge"); - while ((ch = getopt(argc, argv, "pynf")) != -1) { switch (ch) { case 'f': -- cgit v1.2.3