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:
parent
9abb106906
commit
a78b15fa6b
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue