aboutsummaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorBruce Evans <bde@FreeBSD.org>1995-02-16 11:23:25 +0000
committerBruce Evans <bde@FreeBSD.org>1995-02-16 11:23:25 +0000
commit48ab66a1f54fba839be7a078196c08fd9352dfdb (patch)
treec3319c25a9757371e37dea0b5fbc880a64ae5b9d /sbin
parent99909befb61c5544ae14d81e2acbe170769c2eef (diff)
downloadsrc-48ab66a1f54fba839be7a078196c08fd9352dfdb.tar.gz
src-48ab66a1f54fba839be7a078196c08fd9352dfdb.zip
Fix another bogon in the change before the last.
Notes
Notes: svn path=/head/; revision=6491
Diffstat (limited to 'sbin')
-rw-r--r--sbin/mount/mount.c2
-rw-r--r--sbin/mount_ifs/mount.c2
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);