svn commit: r285804 - head/sbin/mount_nfs
Conrad E. Meyer
cem at FreeBSD.org
Wed Jul 22 22:53:41 UTC 2015
Author: cem
Date: Wed Jul 22 22:53:40 2015
New Revision: 285804
URL: https://svnweb.freebsd.org/changeset/base/285804
Log:
mount_nfs: Be more clear on nmount(2) error with errmsg unset
Differential Revision: https://reviews.freebsd.org/D3147
Reviewed by: rmacklem
Approved by: markj (mentor)
MFC after: 2 weeks
Sponsored by: EMC / Isilon Storage Division
Modified:
head/sbin/mount_nfs/mount_nfs.c
Modified: head/sbin/mount_nfs/mount_nfs.c
==============================================================================
--- head/sbin/mount_nfs/mount_nfs.c Wed Jul 22 19:58:21 2015 (r285803)
+++ head/sbin/mount_nfs/mount_nfs.c Wed Jul 22 22:53:40 2015 (r285804)
@@ -476,7 +476,8 @@ main(int argc, char *argv[])
build_iovec(&iov, &iovlen, "errmsg", errmsg, sizeof(errmsg));
if (nmount(iov, iovlen, 0))
- err(1, "%s, %s", mntpath, errmsg);
+ err(1, "nmount: %s%s%s", mntpath, errmsg[0] ? ", " : "",
+ errmsg);
exit(0);
}
More information about the svn-src-head
mailing list