summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2012-08-27 19:08:47 +0000
committerdelphij <delphij@FreeBSD.org>2012-08-27 19:08:47 +0000
commit79315336c56c4e03f82a11f9838965e4ee8d35ba (patch)
treec2f56d13c34dc9a2826f3a9fed663b105585d982 /usr.sbin
parentdd3faa2109584c5a80372b53ceb0420ad3d7ffe7 (diff)
downloadFreeBSD-src-79315336c56c4e03f82a11f9838965e4ee8d35ba.zip
FreeBSD-src-79315336c56c4e03f82a11f9838965e4ee8d35ba.tar.gz
Show error messages if nmount() failed.
MFC after: 1 month
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