[Midnightbsd-cvs] src [8129] trunk/usr.sbin/mountd/mountd.c: show error if nmount fails

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Fri Sep 16 17:46:24 EDT 2016


Revision: 8129
          http://svnweb.midnightbsd.org/src/?rev=8129
Author:   laffer1
Date:     2016-09-16 17:46:24 -0400 (Fri, 16 Sep 2016)
Log Message:
-----------
show error if nmount fails

Modified Paths:
--------------
    trunk/usr.sbin/mountd/mountd.c

Modified: trunk/usr.sbin/mountd/mountd.c
===================================================================
--- trunk/usr.sbin/mountd/mountd.c	2016-09-16 21:46:04 UTC (rev 8128)
+++ trunk/usr.sbin/mountd/mountd.c	2016-09-16 21:46:24 UTC (rev 8129)
@@ -2464,11 +2464,11 @@
 				}
 				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 Midnightbsd-cvs mailing list