Package: readahead
Version: 1:1.20060421.1016-1
Severity: normal
Tags: patch

readahead-check-lists neglects to remove the eol character from the
filename before opening it, reporting every file as missing and
producing the following error repeatedly:
Unsuccessful stat on filename containing newline at
/usr/bin/readahead-check-lists line 9, <ROOT> line 1.

It also incorrectly reports files that are not readable as
nonexistent. The following patch fixes both issues.

Cheers,
Shaun

--- /tmp/readahead-check-lists  2008-02-29 16:58:45.221919482 -0800
+++ /usr/bin/readahead-check-lists      2008-02-29 17:11:28.000000000 -0800
@@ -6,7 +6,8 @@
     if ( -r "$filename" ) {
         open(ROOT,"<", $filename) or die("Cannot open $filename: $!\n");
         while (<ROOT>) {
-            push @notfound, $_ unless -r;
+            chomp;
+            push @notfound, $_ unless -e;
         }
         close(ROOT);
     }



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to