don't print the NULL, but the error
This commit is contained in:
parent
651641ee60
commit
e5d78d1189
@ -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
|
* Copyright (c) 1980, 1989, 1993, 1994
|
||||||
@ -39,7 +39,7 @@ __COPYRIGHT("@(#) Copyright (c) 1980, 1989, 1993, 1994\
|
|||||||
#if 0
|
#if 0
|
||||||
static char sccsid[] = "@(#)mount.c 8.25 (Berkeley) 5/8/95";
|
static char sccsid[] = "@(#)mount.c 8.25 (Berkeley) 5/8/95";
|
||||||
#else
|
#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
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
@ -188,7 +188,7 @@ main(int argc, char *argv[])
|
|||||||
mntfromname = getfsspecname(buf, sizeof(buf),
|
mntfromname = getfsspecname(buf, sizeof(buf),
|
||||||
mntfromname);
|
mntfromname);
|
||||||
if (mntfromname == NULL)
|
if (mntfromname == NULL)
|
||||||
err(EXIT_FAILURE, "%s", mntfromname);
|
err(EXIT_FAILURE, "%s", buf);
|
||||||
if (mountfs(fs->fs_vfstype, mntfromname,
|
if (mountfs(fs->fs_vfstype, mntfromname,
|
||||||
fs->fs_file, init_flags, options,
|
fs->fs_file, init_flags, options,
|
||||||
fs->fs_mntops, !forceall, NULL, 0))
|
fs->fs_mntops, !forceall, NULL, 0))
|
||||||
|
Loading…
Reference in New Issue
Block a user