diff options
author | peter <peter@FreeBSD.org> | 2000-01-10 14:20:53 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2000-01-10 14:20:53 +0000 |
commit | c1ef93f5cac74617074cc7444797df132436e292 (patch) | |
tree | 2c8f92e5540789699df472f4d4c131d90a734486 | |
parent | 67b117eb9dea433abc1632752903055521f2a188 (diff) | |
download | FreeBSD-src-c1ef93f5cac74617074cc7444797df132436e292.zip FreeBSD-src-c1ef93f5cac74617074cc7444797df132436e292.tar.gz |
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
-rw-r--r-- | sbin/fsck/main.c | 4 | ||||
-rw-r--r-- | sbin/fsck_ffs/main.c | 4 | ||||
-rw-r--r-- | sbin/fsck_ifs/main.c | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/sbin/fsck/main.c b/sbin/fsck/main.c index 4d49a38..6463990 100644 --- a/sbin/fsck/main.c +++ b/sbin/fsck/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]); } diff --git a/sbin/fsck_ffs/main.c b/sbin/fsck_ffs/main.c index 4d49a38..6463990 100644 --- a/sbin/fsck_ffs/main.c +++ b/sbin/fsck_ffs/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]); } diff --git a/sbin/fsck_ifs/main.c b/sbin/fsck_ifs/main.c index 4d49a38..6463990 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]); } |