summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/mountd/mountd.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/mountd/mountd.c b/usr.sbin/mountd/mountd.c
index 1e56e10..ffc0a09e 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;
}
OpenPOWER on IntegriCloud