From aea096689e838a34cf92adca60ee2ae5c7d70716 Mon Sep 17 00:00:00 2001 From: dg Date: Wed, 15 Feb 1995 14:45:08 +0000 Subject: Woops, last change wasn't done quite right...fixed. --- sbin/mount/mount.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sbin/mount') diff --git a/sbin/mount/mount.c b/sbin/mount/mount.c index 691c07a..a33a44a 100644 --- a/sbin/mount/mount.c +++ b/sbin/mount/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); } -- cgit v1.1