don't print the NULL, but the error

This commit is contained in:
christos 2012-06-14 00:39:33 +00:00
parent 651641ee60
commit e5d78d1189

View File

@ -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, 1989, 1993, 1994\
#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))