summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorart <art@openbsd.org>1998-12-21 14:21:23 +0000
committerart <art@openbsd.org>1998-12-21 14:21:23 +0000
commitf7fe2eec8bd7df6a4962912a5d6c3151edd9fb00 (patch)
tree5df942c0e75f4f9c37699e9f6498ea2ae9289359
parentuse MOUNT_XFS, not "xfs" as the type of filesystem to mount (diff)
downloadwireguard-openbsd-f7fe2eec8bd7df6a4962912a5d6c3151edd9fb00.tar.xz
wireguard-openbsd-f7fe2eec8bd7df6a4962912a5d6c3151edd9fb00.zip
nice error message when mount(2) returns EOPNOTSUPP
-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;