Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Sep 2012 22:26:45 +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-8@freebsd.org
Subject:   svn commit: r241040 - stable/8/usr.sbin/mountd
Message-ID:  <201209282226.q8SMQjl9016004@svn.freebsd.org>

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



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