diff options
Diffstat (limited to 'sbin/mount_ifs')
-rw-r--r-- | sbin/mount_ifs/mount.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/mount_ifs/mount.c b/sbin/mount_ifs/mount.c index 691c07a..a33a44a 100644 --- a/sbin/mount_ifs/mount.c +++ b/sbin/mount_ifs/mount.c @@ -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); } |