summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>1998-12-21 14:21:24 +0000
committerArtur Grabowski <art@cvs.openbsd.org>1998-12-21 14:21:24 +0000
commit3bb259cfb64a837ed7f7ad51f776c711fdded5fe (patch)
tree1d687978a39c1bf8d565b15119c3efe96290b90d /sbin
parent141d59bf6c58959c553613b9b68bded1640fe8f2 (diff)
nice error message when mount(2) returns EOPNOTSUPP
Diffstat (limited to 'sbin')
-rw-r--r--sbin/mount_msdos/mount_msdos.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/sbin/mount_msdos/mount_msdos.c b/sbin/mount_msdos/mount_msdos.c
index 8755d93c579..6d8d6595a21 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.10 1997/06/20 14:44:39 kstailey Exp $ */
+/* $OpenBSD: mount_msdos.c,v 1.11 1998/12/21 14:21:23 art Exp $ */
/* $NetBSD: mount_msdos.c,v 1.16 1996/10/24 00:12:50 cgd Exp $ */
/*
@@ -32,7 +32,7 @@
*/
#ifndef lint
-static char rcsid[] = "$OpenBSD: mount_msdos.c,v 1.10 1997/06/20 14:44:39 kstailey Exp $";
+static char rcsid[] = "$OpenBSD: mount_msdos.c,v 1.11 1998/12/21 14:21:23 art Exp $";
#endif /* not lint */
#include <sys/cdefs.h>
@@ -147,6 +147,9 @@ main(argc, argv)
if (mount(MOUNT_MSDOS, dir, mntflags, &args) < 0) {
switch (errno) {
+ case EOPNOTSUPP:
+ errcause = "filesystem not supported by kernel";
+ break;
case EMFILE:
errcause = "mount table full";
break;