svn commit: r241038 - stable/9/usr.sbin/mountd

Xin LI delphij at FreeBSD.org
Fri Sep 28 20:29:07 UTC 2012


Author: delphij
Date: Fri Sep 28 20:29:06 2012
New Revision: 241038
URL: http://svn.freebsd.org/changeset/base/241038

Log:
  MFC r239744:
  
  Show error messages if nmount() failed.

Modified:
  stable/9/usr.sbin/mountd/mountd.c
Directory Properties:
  stable/9/usr.sbin/mountd/   (props changed)

Modified: stable/9/usr.sbin/mountd/mountd.c
==============================================================================
--- stable/9/usr.sbin/mountd/mountd.c	Fri Sep 28 18:28:27 2012	(r241037)
+++ stable/9/usr.sbin/mountd/mountd.c	Fri Sep 28 20:29:06 2012	(r241038)
@@ -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-9 mailing list