summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2004-08-12 01:30:33 +0000
committerPascal Rigaux <pixel@mandriva.com>2004-08-12 01:30:33 +0000
commit568f788ae12bcc992f65086e0952263c79479765 (patch)
tree40922a8f185b9bd5354482189ff6afb17e2653bd /perl-install
parent9d7c901939851998fae59eb6151612bc8c87ce9e (diff)
downloaddrakx-568f788ae12bcc992f65086e0952263c79479765.tar
drakx-568f788ae12bcc992f65086e0952263c79479765.tar.gz
drakx-568f788ae12bcc992f65086e0952263c79479765.tar.bz2
drakx-568f788ae12bcc992f65086e0952263c79479765.tar.xz
drakx-568f788ae12bcc992f65086e0952263c79479765.zip
perl_checker compliance
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/resize_fat/io.pm5
-rw-r--r--perl-install/security/msec.pm2
2 files changed, 3 insertions, 4 deletions
diff --git a/perl-install/resize_fat/io.pm b/perl-install/resize_fat/io.pm
index 7ece56533..f4caee626 100644
--- a/perl-install/resize_fat/io.pm
+++ b/perl-install/resize_fat/io.pm
@@ -53,9 +53,8 @@ sub read_file($$) {
sub check_mounted($) {
my ($f) = @_;
- local *F;
- open F, "/proc/mounts" or die "error opening /proc/mounts\n";
- foreach (<F>) {
+ open(my $F, "/proc/mounts") or die "error opening /proc/mounts\n";
+ foreach (<$F>) {
/^$f\s/ and die "device is mounted";
}
}
diff --git a/perl-install/security/msec.pm b/perl-install/security/msec.pm
index 569e601ef..b96b0cbe2 100644
--- a/perl-install/security/msec.pm
+++ b/perl-install/security/msec.pm
@@ -163,7 +163,7 @@ sub reload {
my $num_level = 0;
require security::level;
$num_level ||= security::level::get();
- $msec->{functions}{defaults_file} = "$::prefix/usr/share/msec/level.".$num_level;
+ $msec->{functions}{defaults_file} = "$::prefix/usr/share/msec/level.$num_level";
$msec->{functions}{default} = { $msec->load_defaults('functions') };
}