Date: Wed, 22 Jul 2015 22:53:41 +0000 (UTC) From: "Conrad E. Meyer" <cem@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r285804 - head/sbin/mount_nfs Message-ID: <201507222253.t6MMrfrc089273@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201507222253.t6MMrfrc089273>