diff options
author | Craig Rodrigues <rodrigc@FreeBSD.org> | 2007-01-26 13:26:43 +0000 |
---|---|---|
committer | Craig Rodrigues <rodrigc@FreeBSD.org> | 2007-01-26 13:26:43 +0000 |
commit | 37518a88fb166d8a2d02c44764faec2c88edfd6a (patch) | |
tree | 15d5d1176b6fae92eaeb10a9cf7fda4faab20100 /usr.sbin | |
parent | 29e2b723d46a527d9a30bd23950b00d5f9d34cfe (diff) | |
download | src-37518a88fb166d8a2d02c44764faec2c88edfd6a.tar.gz src-37518a88fb166d8a2d02c44764faec2c88edfd6a.zip |
If nmount() fails to export a directory, in the syslog() error message,
add the errmsg string returned by nmount().
Notes
Notes:
svn path=/head/; revision=166258
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/mountd/mountd.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.sbin/mountd/mountd.c b/usr.sbin/mountd/mountd.c index d11d53861ea0..4097dddcd7cc 100644 --- a/usr.sbin/mountd/mountd.c +++ b/usr.sbin/mountd/mountd.c @@ -1962,7 +1962,8 @@ do_mount(struct exportlist *ep, struct grouplist *grp, int exflags, if (cp == dirp) { if (debug) warnx("mnt unsucc"); - syslog(LOG_ERR, "can't export %s", dirp); + syslog(LOG_ERR, "can't export %s %s", dirp, + errmsg); ret = 1; goto error_exit; } @@ -1972,7 +1973,8 @@ do_mount(struct exportlist *ep, struct grouplist *grp, int exflags, if (statfs(dirp, &fsb1) != 0 || bcmp(&fsb1.f_fsid, &fsb->f_fsid, sizeof(fsb1.f_fsid)) != 0) { *cp = savedc; - syslog(LOG_ERR, "can't export %s", dirp); + syslog(LOG_ERR, "can't export %s %s", dirp, + errmsg); ret = 1; goto error_exit; } |