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
This commit is contained in:
parent
ddaf675fc8
commit
773e56519d
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user