From a9c4489cb4e7b31aaeab53291a7012251f86ce12 Mon Sep 17 00:00:00 2001 From: Pedro Martelletto Date: Fri, 11 Aug 2006 11:47:40 +0000 Subject: Give a less cryptic error message when trying to mount invalid file systems, okay thib@ ian@ millert@ beck@ --- sbin/mount_ffs/mount_ffs.c | 8 ++------ 1 file 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; -- cgit v1.2.3