svn commit: r241040 - stable/8/usr.sbin/mountd
Xin LI
delphij at FreeBSD.org
Fri Sep 28 22:26:45 UTC 2012
Author: delphij
Date: Fri Sep 28 22:26:44 2012
New Revision: 241040
URL: http://svn.freebsd.org/changeset/base/241040
Log:
MFC r239744:
Show error messages if nmount() failed.
Modified:
stable/8/usr.sbin/mountd/mountd.c
Directory Properties:
stable/8/usr.sbin/mountd/ (props changed)
Modified: stable/8/usr.sbin/mountd/mountd.c
==============================================================================
--- stable/8/usr.sbin/mountd/mountd.c Fri Sep 28 20:43:03 2012 (r241039)
+++ stable/8/usr.sbin/mountd/mountd.c Fri Sep 28 22:26:44 2012 (r241040)
@@ -2464,11 +2464,11 @@ do_mount(struct exportlist *ep, struct g
}
if (errno == EPERM) {
if (debug)
- warnx("can't change attributes for %s",
- dirp);
+ warnx("can't change attributes for %s: %s",
+ dirp, errmsg);
syslog(LOG_ERR,
- "can't change attributes for %s",
- dirp);
+ "can't change attributes for %s: %s",
+ dirp, errmsg);
ret = 1;
goto error_exit;
}
More information about the svn-src-stable
mailing list