Module Name: src
Committed By: christos
Date: Thu Jun 14 00:39:34 UTC 2012
Modified Files:
src/sbin/mount: mount.c
Log Message:
don't print the NULL, but the error
To generate a diff of this commit:
cvs rdiff -u -r1.96 -r1.97 src/sbin/mount/mount.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sbin/mount/mount.c
diff -u src/sbin/mount/mount.c:1.96 src/sbin/mount/mount.c:1.97
--- src/sbin/mount/mount.c:1.96 Mon Apr 9 11:50:20 2012
+++ src/sbin/mount/mount.c Wed Jun 13 20:39:33 2012
@@ -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 @@ __COPYRIGHT("@(#) Copyright (c) 1980, 19
#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 @@ main(int argc, char *argv[])
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))