summaryrefslogtreecommitdiffstats
path: root/usr.sbin/mountd
diff options
context:
space:
mode:
authorrodrigc <rodrigc@FreeBSD.org>2007-01-26 13:26:43 +0000
committerrodrigc <rodrigc@FreeBSD.org>2007-01-26 13:26:43 +0000
commit6204a21149597458cd050897b5c37ed77709bcb1 (patch)
tree15d5d1176b6fae92eaeb10a9cf7fda4faab20100 /usr.sbin/mountd
parente06cbb32ef9f90c5bfa858f65cb897781a3196c6 (diff)
downloadFreeBSD-src-6204a21149597458cd050897b5c37ed77709bcb1.zip
FreeBSD-src-6204a21149597458cd050897b5c37ed77709bcb1.tar.gz
If nmount() fails to export a directory, in the syslog() error message,
add the errmsg string returned by nmount().
Diffstat (limited to 'usr.sbin/mountd')
-rw-r--r--usr.sbin/mountd/mountd.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.sbin/mountd/mountd.c b/usr.sbin/mountd/mountd.c
index d11d538..4097ddd 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;
}
OpenPOWER on IntegriCloud