summaryrefslogtreecommitdiff
path: root/sbin/mount_msdos
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2012-07-09 12:58:02 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2012-07-09 12:58:02 +0000
commitc0b5c1388ada774aff32bb8702239b1fadb26bca (patch)
tree2164eb039f7890908ae71f89de51c19e513d81db /sbin/mount_msdos
parentc79a1a245e76a0716ee43c23d5df70b2e1f94f46 (diff)
Revert previous.
The standards gpds are jealous gods. kettenis@ and beck@ have shown EROFS is the wrong thing to return. So revert to EACCES until a better error code is decided on.
Diffstat (limited to 'sbin/mount_msdos')
-rw-r--r--sbin/mount_msdos/mount_msdos.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/sbin/mount_msdos/mount_msdos.c b/sbin/mount_msdos/mount_msdos.c
index a3c1aa913e4..3a210d846c7 100644
--- a/sbin/mount_msdos/mount_msdos.c
+++ b/sbin/mount_msdos/mount_msdos.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mount_msdos.c,v 1.25 2012/07/08 14:30:58 krw Exp $ */
+/* $OpenBSD: mount_msdos.c,v 1.26 2012/07/09 12:58:01 krw Exp $ */
/* $NetBSD: mount_msdos.c,v 1.16 1996/10/24 00:12:50 cgd Exp $ */
/*
@@ -140,10 +140,6 @@ main(int argc, char **argv)
case EMFILE:
errcause = "mount table full";
break;
- case EROFS:
- errcause =
- "filesystem must be mounted read-only; you may need to run fsck";
- break;
case EINVAL:
errcause =
"not an MSDOS filesystem";