diff options
author | kstailey <kstailey@cvs.openbsd.org> | 1997-06-20 14:44:40 +0000 |
---|---|---|
committer | kstailey <kstailey@cvs.openbsd.org> | 1997-06-20 14:44:40 +0000 |
commit | 26c594c956fe46526b94956d9c788c622c522a4d (patch) | |
tree | 95ad3199bd9cb7352443f50391d99bbdb64bd76a | |
parent | 8e44f4923a9472708809906d556c2a0ea9947400 (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.
-rw-r--r-- | sbin/mount_msdos/mount_msdos.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/sbin/mount_msdos/mount_msdos.c b/sbin/mount_msdos/mount_msdos.c index dd06fe3f167..8755d93c579 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.9 1997/01/15 23:41:22 millert Exp $ */ +/* $OpenBSD: mount_msdos.c,v 1.10 1997/06/20 14:44:39 kstailey 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.9 1997/01/15 23:41:22 millert Exp $"; +static char rcsid[] = "$OpenBSD: mount_msdos.c,v 1.10 1997/06/20 14:44:39 kstailey Exp $"; #endif /* not lint */ #include <sys/cdefs.h> @@ -151,11 +151,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); |