From d625a1456243c30ba35c642644beb8e0b5319417 Mon Sep 17 00:00:00 2001 From: kstailey Date: Fri, 20 Jun 1997 14:07:47 +0000 Subject: 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. --- sbin/mount_ffs/mount_ffs.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'sbin/mount_ffs') 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); -- cgit v1.2.3