1
0
mirror of https://github.com/fspc/gbootroot.git synced 2025-02-22 08:33:24 -05:00

This corrects a bug where onto_proc_filesystem was edited incorrectly and wasn't

checking for the proc_dev return value in the way originally intended.
This commit is contained in:
freesource 2001-08-29 17:08:25 +00:00
parent 86ff0a8eea
commit b04224d6f1

View File

@ -1660,11 +1660,12 @@ sub onto_proc_filesystem {
my($sdev) = (stat($file))[0];
my($ldev) = (lstat($file))[0];
if ($sdev) {
$sdev = $proc_dev;
if ($sdev && $sdev == $proc_dev) {
return $proc_dev;
}
elsif ($ldev) {
$ldev = $proc_dev;
elsif ($ldev && $ldev == $proc_dev) {
return $proc_dev;
}
}