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
This commit is contained in:
parent
3ef3fac74f
commit
aa5344b7d7
@ -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]);
|
||||
}
|
||||
|
@ -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]);
|
||||
}
|
||||
|
@ -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]);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user