summaryrefslogtreecommitdiffstats
path: root/sbin/mount_ifs/mount.c
diff options
context:
space:
mode:
authordg <dg@FreeBSD.org>1995-02-15 14:45:08 +0000
committerdg <dg@FreeBSD.org>1995-02-15 14:45:08 +0000
commitaea096689e838a34cf92adca60ee2ae5c7d70716 (patch)
tree4b168441b0ea59e08c2f399dba489bb4c17cd2d4 /sbin/mount_ifs/mount.c
parente7c25e8395bb3c1e7dff9181be84b6c746340aab (diff)
downloadFreeBSD-src-aea096689e838a34cf92adca60ee2ae5c7d70716.zip
FreeBSD-src-aea096689e838a34cf92adca60ee2ae5c7d70716.tar.gz
Woops, last change wasn't done quite right...fixed.
Diffstat (limited to 'sbin/mount_ifs/mount.c')
-rw-r--r--sbin/mount_ifs/mount.c2
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);
}
OpenPOWER on IntegriCloud