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

This commit is contained in:
David Greenman 1995-02-15 14:45:08 +00:00
parent 32e68582d1
commit 792016e7a4
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=6444
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);
}