diff options
author | bde <bde@FreeBSD.org> | 1995-02-16 11:23:25 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1995-02-16 11:23:25 +0000 |
commit | ac8c07315a76e8524a1db99001892949571a5243 (patch) | |
tree | c3319c25a9757371e37dea0b5fbc880a64ae5b9d /sbin/mount/mount.c | |
parent | e38a83f82fa8acf1d68f34f8e0e03d367889ef34 (diff) | |
download | FreeBSD-src-ac8c07315a76e8524a1db99001892949571a5243.zip FreeBSD-src-ac8c07315a76e8524a1db99001892949571a5243.tar.gz |
Fix another bogon in the change before the last.
Diffstat (limited to 'sbin/mount/mount.c')
-rw-r--r-- | sbin/mount/mount.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/mount/mount.c b/sbin/mount/mount.c index a33a44a..2121ae1 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); |