Date: Mon, 27 Aug 2012 19:08:47 +0000 (UTC) From: Xin LI <delphij@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r239744 - head/usr.sbin/mountd Message-ID: <201208271908.q7RJ8l79043041@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: delphij Date: Mon Aug 27 19:08:47 2012 New Revision: 239744 URL: http://svn.freebsd.org/changeset/base/239744 Log: Show error messages if nmount() failed. MFC after: 1 month Modified: head/usr.sbin/mountd/mountd.c Modified: head/usr.sbin/mountd/mountd.c ============================================================================== --- head/usr.sbin/mountd/mountd.c Mon Aug 27 18:14:22 2012 (r239743) +++ head/usr.sbin/mountd/mountd.c Mon Aug 27 19:08:47 2012 (r239744) @@ -2461,11 +2461,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?201208271908.q7RJ8l79043041>