linux-base: Always print the proper error message if we fail to open a file and can't handle it

svn path=/dists/sid/linux-2.6/; revision=15471
This commit is contained in:
Ben Hutchings 2010-04-02 16:41:06 +00:00
parent 9abb106906
commit a78b15fa6b
1 changed files with 2 additions and 2 deletions

View File

@ -1041,7 +1041,7 @@ sub scan_config_files {
if ($! == POSIX::ENOENT) {
next;
}
die $!;
die "$!";
}
# Are any of the related packages wanted or installed?
@ -1078,7 +1078,7 @@ sub scan_config_files {
installed => $installed};
}
my $fstab = new FileHandle('/etc/fstab', 'r');
my $fstab = new FileHandle('/etc/fstab', 'r') or die "$!";
while (1) {
my ($text, $bdev, $path, $type) = fstab_next($fstab);
last unless defined($text);