summaryrefslogtreecommitdiff
path: root/sbin/mount_ffs
diff options
context:
space:
mode:
authorPedro Martelletto <pedro@cvs.openbsd.org>2006-08-11 11:47:40 +0000
committerPedro Martelletto <pedro@cvs.openbsd.org>2006-08-11 11:47:40 +0000
commita9c4489cb4e7b31aaeab53291a7012251f86ce12 (patch)
tree8bf8866598e1994e787871a2efb111438b2c41ba /sbin/mount_ffs
parent5bf123cfcef1ab65088bcb0fb74657cd7fe005f0 (diff)
Give a less cryptic error message when trying to mount invalid file
systems, okay thib@ ian@ millert@ beck@
Diffstat (limited to 'sbin/mount_ffs')
-rw-r--r--sbin/mount_ffs/mount_ffs.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/sbin/mount_ffs/mount_ffs.c b/sbin/mount_ffs/mount_ffs.c
index 72ddfe5b210..32e1491dc1e 100644
--- a/sbin/mount_ffs/mount_ffs.c
+++ b/sbin/mount_ffs/mount_ffs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mount_ffs.c,v 1.18 2005/04/08 20:09:37 jaredy Exp $ */
+/* $OpenBSD: mount_ffs.c,v 1.19 2006/08/11 11:47:39 pedro Exp $ */
/* $NetBSD: mount_ffs.c,v 1.3 1996/04/13 01:31:19 jtc Exp $ */
/*-
@@ -40,7 +40,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)mount_ufs.c 8.2 (Berkeley) 3/27/94";
#else
-static char rcsid[] = "$OpenBSD: mount_ffs.c,v 1.18 2005/04/08 20:09:37 jaredy Exp $";
+static char rcsid[] = "$OpenBSD: mount_ffs.c,v 1.19 2006/08/11 11:47:39 pedro Exp $";
#endif
#endif /* not lint */
@@ -109,10 +109,6 @@ main(int argc, char *argv[])
case EMFILE:
errcause = "mount table full";
break;
- case EINVAL:
- errcause =
- "specified device does not match mounted device";
- break;
case EOPNOTSUPP:
errcause = "filesystem not supported by kernel";
break;