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:
parent
86ff0a8eea
commit
b04224d6f1
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user