From 17bb48fa11d98a1b5e3e18f74dc7f80436f95922 Mon Sep 17 00:00:00 2001 From: wollman Date: Fri, 2 Dec 1994 02:58:56 +0000 Subject: [PATCH] Change obnoxious ``Not root dir'' error message into one which actually tells you what's wrong. --- sbin/mountd/mountd.c | 5 +++-- usr.sbin/mountd/mountd.c | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/sbin/mountd/mountd.c b/sbin/mountd/mountd.c index 605e31fbcb6e..2b2ade88fcbc 100644 --- a/sbin/mountd/mountd.c +++ b/sbin/mountd/mountd.c @@ -43,7 +43,7 @@ static char copyright[] = #ifndef lint /*static char sccsid[] = "From: @(#)mountd.c 8.8 (Berkeley) 2/20/94";*/ static const char rcsid[] = - "$Id$"; + "$Id: mountd.c,v 1.3 1994/09/22 22:16:50 wollman Exp $"; #endif /*not lint*/ #include @@ -1555,7 +1555,8 @@ do_mount(ep, grp, exflags, anoncrp, dirp, dirplen, fsb) return (1); } if (opt_flags & OP_ALLDIRS) { - syslog(LOG_ERR, "Not root dir"); + syslog(LOG_ERR, "Could not remount %s: %m", + dirp); return (1); } /* back up over the last component */ diff --git a/usr.sbin/mountd/mountd.c b/usr.sbin/mountd/mountd.c index 605e31fbcb6e..2b2ade88fcbc 100644 --- a/usr.sbin/mountd/mountd.c +++ b/usr.sbin/mountd/mountd.c @@ -43,7 +43,7 @@ static char copyright[] = #ifndef lint /*static char sccsid[] = "From: @(#)mountd.c 8.8 (Berkeley) 2/20/94";*/ static const char rcsid[] = - "$Id$"; + "$Id: mountd.c,v 1.3 1994/09/22 22:16:50 wollman Exp $"; #endif /*not lint*/ #include @@ -1555,7 +1555,8 @@ do_mount(ep, grp, exflags, anoncrp, dirp, dirplen, fsb) return (1); } if (opt_flags & OP_ALLDIRS) { - syslog(LOG_ERR, "Not root dir"); + syslog(LOG_ERR, "Could not remount %s: %m", + dirp); return (1); } /* back up over the last component */