From b04224d6f1df4af005ca0865c83f1aa8244fd2f9 Mon Sep 17 00:00:00 2001 From: freesource Date: Wed, 29 Aug 2001 17:08:25 +0000 Subject: [PATCH] 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. --- BootRoot/Yard.pm | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/BootRoot/Yard.pm b/BootRoot/Yard.pm index 8c8c204..2853b3d 100644 --- a/BootRoot/Yard.pm +++ b/BootRoot/Yard.pm @@ -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; } }