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;
                                }
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to