Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sbin/mount change warning message



details:   https://anonhg.NetBSD.org/src/rev/7c78a566425a
branches:  trunk
changeset: 348182:7c78a566425a
user:      maya <maya%NetBSD.org@localhost>
date:      Sat Oct 08 06:47:59 2016 +0000

description:
change warning message

previously attempting to use mount -t ext2 like myself would result in
the warning "mount: mount_ext2 not found for /mnt", which (if you're me)
can be misunderstood as "/mnt is not an ext2 filesystem"...

change it to "mount: mount_ext2 not found"

diffstat:

 sbin/mount/mount.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 844fff95c181 -r 7c78a566425a sbin/mount/mount.c
--- a/sbin/mount/mount.c        Sat Oct 08 00:39:53 2016 +0000
+++ b/sbin/mount/mount.c        Sat Oct 08 06:47:59 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mount.c,v 1.100 2015/01/04 22:05:37 pooka Exp $        */
+/*     $NetBSD: mount.c,v 1.101 2016/10/08 06:47:59 maya Exp $ */
 
 /*
  * Copyright (c) 1980, 1989, 1993, 1994
@@ -39,7 +39,7 @@
 #if 0
 static char sccsid[] = "@(#)mount.c    8.25 (Berkeley) 5/8/95";
 #else
-__RCSID("$NetBSD: mount.c,v 1.100 2015/01/04 22:05:37 pooka Exp $");
+__RCSID("$NetBSD: mount.c,v 1.101 2016/10/08 06:47:59 maya Exp $");
 #endif
 #endif /* not lint */
 
@@ -503,7 +503,7 @@
                } while (*++edir != NULL);
 
                if (errno == ENOENT)
-                       warnx("%s not found for %s", execbase, name);
+                       warnx("%s not found", execbase);
                _exit(1);
                /* NOTREACHED */
 



Home | Main Index | Thread Index | Old Index