Source-Changes-HG archive

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

[src/trunk]: src/sbin/mount don't print the NULL, but the error



details:   https://anonhg.NetBSD.org/src/rev/5cf7e435f3ba
branches:  trunk
changeset: 779727:5cf7e435f3ba
user:      christos <christos%NetBSD.org@localhost>
date:      Thu Jun 14 00:39:33 2012 +0000

description:
don't print the NULL, but the error

diffstat:

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

diffs (27 lines):

diff -r 3534a4708125 -r 5cf7e435f3ba sbin/mount/mount.c
--- a/sbin/mount/mount.c        Thu Jun 14 00:21:55 2012 +0000
+++ b/sbin/mount/mount.c        Thu Jun 14 00:39:33 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mount.c,v 1.96 2012/04/09 15:50:20 mlelstv Exp $       */
+/*     $NetBSD: mount.c,v 1.97 2012/06/14 00:39:33 christos 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.96 2012/04/09 15:50:20 mlelstv Exp $");
+__RCSID("$NetBSD: mount.c,v 1.97 2012/06/14 00:39:33 christos Exp $");
 #endif
 #endif /* not lint */
 
@@ -188,7 +188,7 @@
                                mntfromname = getfsspecname(buf, sizeof(buf),
                                    mntfromname);
                                if (mntfromname == NULL)
-                                       err(EXIT_FAILURE, "%s", mntfromname);
+                                       err(EXIT_FAILURE, "%s", buf);
                                if (mountfs(fs->fs_vfstype, mntfromname,
                                    fs->fs_file, init_flags, options,
                                    fs->fs_mntops, !forceall, NULL, 0))



Home | Main Index | Thread Index | Old Index