Woops, last change wasn't done quite right...fixed.

This commit is contained in:
dg 1995-02-15 14:45:08 +00:00
parent e7c25e8395
commit aea096689e
2 changed files with 2 additions and 2 deletions

View File

@ -262,7 +262,7 @@ mountfs(vfstype, spec, name, flags, options, mntopts)
char *optbuf, execname[MAXPATHLEN + 1], mntpath[MAXPATHLEN];
if ((realpath(name, mntpath) != NULL) && (stat(mntpath, &sb) == NULL)) {
if ((sb.st_mode & S_IFDIR) == 0) {
if (!S_ISDIR(sb.st_mode)) {
warnx("%s: Not a directory", mntpath);
return (1);
}

View File

@ -262,7 +262,7 @@ mountfs(vfstype, spec, name, flags, options, mntopts)
char *optbuf, execname[MAXPATHLEN + 1], mntpath[MAXPATHLEN];
if ((realpath(name, mntpath) != NULL) && (stat(mntpath, &sb) == NULL)) {
if ((sb.st_mode & S_IFDIR) == 0) {
if (!S_ISDIR(sb.st_mode)) {
warnx("%s: Not a directory", mntpath);
return (1);
}