From 7790916244e0382ba65fb179e7eb9ddc576eb5bb Mon Sep 17 00:00:00 2001 From: Xin LI Date: Mon, 27 Aug 2012 19:08:47 +0000 Subject: [PATCH] Show error messages if nmount() failed. MFC after: 1 month --- usr.sbin/mountd/mountd.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/usr.sbin/mountd/mountd.c b/usr.sbin/mountd/mountd.c index 1e56e10cc850..ffc0a09e6d71 100644 --- a/usr.sbin/mountd/mountd.c +++ b/usr.sbin/mountd/mountd.c @@ -2461,11 +2461,11 @@ do_mount(struct exportlist *ep, struct grouplist *grp, int exflags, } 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; }