diff options
author | delphij <delphij@FreeBSD.org> | 2012-08-27 19:08:47 +0000 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2012-08-27 19:08:47 +0000 |
commit | 79315336c56c4e03f82a11f9838965e4ee8d35ba (patch) | |
tree | c2f56d13c34dc9a2826f3a9fed663b105585d982 | |
parent | dd3faa2109584c5a80372b53ceb0420ad3d7ffe7 (diff) | |
download | FreeBSD-src-79315336c56c4e03f82a11f9838965e4ee8d35ba.zip FreeBSD-src-79315336c56c4e03f82a11f9838965e4ee8d35ba.tar.gz |
Show error messages if nmount() failed.
MFC after: 1 month
-rw-r--r-- | usr.sbin/mountd/mountd.c | 8 |
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; } |