aboutsummaryrefslogtreecommitdiff
path: root/sbin/fsck_ifs
diff options
context:
space:
mode:
authorPeter Wemm <peter@FreeBSD.org>2000-01-10 14:20:53 +0000
committerPeter Wemm <peter@FreeBSD.org>2000-01-10 14:20:53 +0000
commitaa5344b7d7ef5e1d1b220594e6a21622b6be7357 (patch)
tree703edd6216adecbfa9f70010cc5603b60b3da161 /sbin/fsck_ifs
parent3ef3fac74f0f36e775ffa436493b926637424391 (diff)
downloadsrc-aa5344b7d7ef5e1d1b220594e6a21622b6be7357.tar.gz
src-aa5344b7d7ef5e1d1b220594e6a21622b6be7357.zip
Fix the use of an uninitialized variable in the previous commit.
Also, in addition to the previous log message, the last change had a fix for the case where where f.mntfromname is a relative path like da0a. Submitted by: bde
Notes
Notes: svn path=/head/; revision=55773
Diffstat (limited to 'sbin/fsck_ifs')
-rw-r--r--sbin/fsck_ifs/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/fsck_ifs/main.c b/sbin/fsck_ifs/main.c
index 4d49a385fd08..6463990b5e6f 100644
--- a/sbin/fsck_ifs/main.c
+++ b/sbin/fsck_ifs/main.c
@@ -339,7 +339,7 @@ checkfilesys(filesys, mntpt, auxdata, child)
resolved = 0;
/*
- * Check to see if the filesystem if mounted read-write.
+ * Check to see if the filesystem is mounted read-write.
*/
if (mntbuf != NULL && (mntbuf->f_flags & MNT_RDONLY) == 0)
resolved = 0;
@@ -409,7 +409,7 @@ getmntpt(name)
strcat(device, devname);
devname = device;
}
- if (stat(device, &mntdevstat) == 0 &&
+ if (stat(devname, &mntdevstat) == 0 &&
mntdevstat.st_rdev == devstat.st_rdev)
return (&mntbuf[i]);
}