Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Sep 2012 20:29:06 +0000 (UTC)
From:      Xin LI <delphij@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org
Subject:   svn commit: r241038 - stable/9/usr.sbin/mountd
Message-ID:  <201209282029.q8SKT6wD001995@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;
 				}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201209282029.q8SKT6wD001995>