svn commit: r239744 - head/usr.sbin/mountd

Xin LI delphij at FreeBSD.org
Mon Aug 27 19:08:48 UTC 2012


Author: delphij
Date: Mon Aug 27 19:08:47 2012
New Revision: 239744
URL: http://svn.freebsd.org/changeset/base/239744

Log:
  Show error messages if nmount() failed.
  
  MFC after:	1 month

Modified:
  head/usr.sbin/mountd/mountd.c

Modified: head/usr.sbin/mountd/mountd.c
==============================================================================
--- head/usr.sbin/mountd/mountd.c	Mon Aug 27 18:14:22 2012	(r239743)
+++ head/usr.sbin/mountd/mountd.c	Mon Aug 27 19:08:47 2012	(r239744)
@@ -2461,11 +2461,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-head mailing list