summaryrefslogtreecommitdiff
path: root/sbin/fsck_msdos/main.c
diff options
context:
space:
mode:
authorTheo Buehler <tb@cvs.openbsd.org>2016-05-28 18:00:43 +0000
committerTheo Buehler <tb@cvs.openbsd.org>2016-05-28 18:00:43 +0000
commitd06f1a4caba881ba335256dd92ba73804fa86c85 (patch)
tree157d1a062e2695a6a3264821ab5c750b4756807f /sbin/fsck_msdos/main.c
parent9b1ffdcf40701b84c651f9dc6773195f0bab6b40 (diff)
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
Diffstat (limited to 'sbin/fsck_msdos/main.c')
-rw-r--r--sbin/fsck_msdos/main.c5
1 files changed, 1 insertions, 4 deletions
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':