Change obnoxious ``Not root dir'' error message into one which actually
tells you what's wrong.
This commit is contained in:
parent
92915f5044
commit
3980ac4f63
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=4895
@ -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 <sys/param.h>
|
||||
@ -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 */
|
||||
|
@ -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 <sys/param.h>
|
||||
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user