From ac8c07315a76e8524a1db99001892949571a5243 Mon Sep 17 00:00:00 2001 From: bde Date: Thu, 16 Feb 1995 11:23:25 +0000 Subject: [PATCH] Fix another bogon in the change before the last. --- sbin/mount/mount.c | 2 +- sbin/mount_ifs/mount.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sbin/mount/mount.c b/sbin/mount/mount.c index a33a44ad5b31..2121ae11d0eb 100644 --- a/sbin/mount/mount.c +++ b/sbin/mount/mount.c @@ -261,7 +261,7 @@ mountfs(vfstype, spec, name, flags, options, mntopts) int argc, i, status; char *optbuf, execname[MAXPATHLEN + 1], mntpath[MAXPATHLEN]; - if ((realpath(name, mntpath) != NULL) && (stat(mntpath, &sb) == NULL)) { + if (realpath(name, mntpath) != NULL && stat(mntpath, &sb) == 0) { if (!S_ISDIR(sb.st_mode)) { warnx("%s: Not a directory", mntpath); return (1); diff --git a/sbin/mount_ifs/mount.c b/sbin/mount_ifs/mount.c index a33a44ad5b31..2121ae11d0eb 100644 --- a/sbin/mount_ifs/mount.c +++ b/sbin/mount_ifs/mount.c @@ -261,7 +261,7 @@ mountfs(vfstype, spec, name, flags, options, mntopts) int argc, i, status; char *optbuf, execname[MAXPATHLEN + 1], mntpath[MAXPATHLEN]; - if ((realpath(name, mntpath) != NULL) && (stat(mntpath, &sb) == NULL)) { + if (realpath(name, mntpath) != NULL && stat(mntpath, &sb) == 0) { if (!S_ISDIR(sb.st_mode)) { warnx("%s: Not a directory", mntpath); return (1);