Fix another bogon in the change before the last.

This commit is contained in:
bde 1995-02-16 11:23:25 +00:00
parent 2e62d6b15c
commit d6ee5e56b1
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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);