summaryrefslogtreecommitdiff
path: root/sbin/mount_ffs
diff options
context:
space:
mode:
authorkstailey <kstailey@cvs.openbsd.org>1997-06-20 14:07:47 +0000
committerkstailey <kstailey@cvs.openbsd.org>1997-06-20 14:07:47 +0000
commitd625a1456243c30ba35c642644beb8e0b5319417 (patch)
tree9ed67a309420cdeac79d65335232e2226b2347c5 /sbin/mount_ffs
parent60f9d77aeec2ee39bca2e22ab7208ee52f730278 (diff)
Now that mount(2) sets errno to EFTYPE, not EINVAL for "invalid file system"
we can use NLS for the text, not a hardcode English message.
Diffstat (limited to 'sbin/mount_ffs')
-rw-r--r--sbin/mount_ffs/mount_ffs.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/sbin/mount_ffs/mount_ffs.c b/sbin/mount_ffs/mount_ffs.c
index e3c05c6e0e5..ff71634694f 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.5 1997/01/15 23:41:20 millert Exp $ */
+/* $OpenBSD: mount_ffs.c,v 1.6 1997/06/20 14:07:46 kstailey Exp $ */
/* $NetBSD: mount_ffs.c,v 1.3 1996/04/13 01:31:19 jtc Exp $ */
/*-
@@ -44,7 +44,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.5 1997/01/15 23:41:20 millert Exp $";
+static char rcsid[] = "$OpenBSD: mount_ffs.c,v 1.6 1997/06/20 14:07:46 kstailey Exp $";
#endif
#endif /* not lint */
@@ -114,11 +114,8 @@ main(argc, argv)
errcause = "mount table full";
break;
case EINVAL:
- if (mntflags & MNT_UPDATE)
- errcause =
+ errcause =
"specified device does not match mounted device";
- else
- errcause = "incorrect super block";
break;
default:
errcause = strerror(errno);