tag 468737 pending thanks Will be fixed in the next upload.
Shaun Jackman wrote: > 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); > } > > > -- Julian Andres Klode, Fellow of the Free Software Foundation Europe Ubuntu Member | Debian Maintainer | Developer try Ubuntu: http://www.ubuntu.com/ | my site: http://jak-linux.org/ mail: [EMAIL PROTECTED] | IRC: juliank languages: German | English
signature.asc
Description: OpenPGP digital signature