mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-15 10:17:20 +00:00
Show error messages if nmount() failed.
MFC after: 1 month
This commit is contained in:
parent
6b5b57ae9f
commit
7790916244
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=239744
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user