mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-02 08:42:48 +00:00
Fix another bogon in the change before the last.
This commit is contained in:
parent
99909befb6
commit
48ab66a1f5
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=6491
@ -261,7 +261,7 @@ mountfs(vfstype, spec, name, flags, options, mntopts)
|
||||
int argc, i, status;
|
||||
char *optbuf, execname[MAXPATHLEN + 1], mntpath[MAXPATHLEN];
|
||||
|
||||
if ((realpath(name, mntpath) != NULL) && (stat(mntpath, &sb) == NULL)) {
|
||||
if (realpath(name, mntpath) != NULL && stat(mntpath, &sb) == 0) {
|
||||
if (!S_ISDIR(sb.st_mode)) {
|
||||
warnx("%s: Not a directory", mntpath);
|
||||
return (1);
|
||||
|
@ -261,7 +261,7 @@ mountfs(vfstype, spec, name, flags, options, mntopts)
|
||||
int argc, i, status;
|
||||
char *optbuf, execname[MAXPATHLEN + 1], mntpath[MAXPATHLEN];
|
||||
|
||||
if ((realpath(name, mntpath) != NULL) && (stat(mntpath, &sb) == NULL)) {
|
||||
if (realpath(name, mntpath) != NULL && stat(mntpath, &sb) == 0) {
|
||||
if (!S_ISDIR(sb.st_mode)) {
|
||||
warnx("%s: Not a directory", mntpath);
|
||||
return (1);
|
||||
|
Loading…
Reference in New Issue
Block a user