summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--urpm/cfg.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/urpm/cfg.pm b/urpm/cfg.pm
index c6b210ce..5522a999 100644
--- a/urpm/cfg.pm
+++ b/urpm/cfg.pm
@@ -107,7 +107,8 @@ sub load_config ($;$) {
my $priority = 1;
my $medium;
$err = '';
- my @conf_lines = cat_($file) or do { $err = N("unable to read config file [%s]", $file); return };
+ -r $file or do { $err = N("unable to read config file [%s]", $file); return };
+ my @conf_lines = cat_($file);
foreach (@conf_lines) {
chomp;
next if /^\s*#/; #- comments