summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2002-12-04 12:38:16 +0000
committerPascal Rigaux <pixel@mandriva.com>2002-12-04 12:38:16 +0000
commitbe575c0c81a3a2dc6b62abc220bdbc3f5aec09f9 (patch)
tree2ef99fc1bb3410b6b4bf5b7af235ec7f9daffcbd
parente4ff98526300ff8401955e7ba1804997c3ef135b (diff)
downloaddrakx-backup-do-not-use-be575c0c81a3a2dc6b62abc220bdbc3f5aec09f9.tar
drakx-backup-do-not-use-be575c0c81a3a2dc6b62abc220bdbc3f5aec09f9.tar.gz
drakx-backup-do-not-use-be575c0c81a3a2dc6b62abc220bdbc3f5aec09f9.tar.bz2
drakx-backup-do-not-use-be575c0c81a3a2dc6b62abc220bdbc3f5aec09f9.tar.xz
drakx-backup-do-not-use-be575c0c81a3a2dc6b62abc220bdbc3f5aec09f9.zip
don't use "local *F"
-rw-r--r--perl-install/fsedit.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/perl-install/fsedit.pm b/perl-install/fsedit.pm
index 7a4c63d7a..4a46dd95c 100644
--- a/perl-install/fsedit.pm
+++ b/perl-install/fsedit.pm
@@ -746,9 +746,9 @@ sub rescuept($) {
my ($ext, @hd);
my $dev = devices::make($hd->{device});
- local *F; open F, "rescuept $dev|";
+ open(my $F, "rescuept $dev|");
local $_;
- while (<F>) {
+ while (<$F>) {
my ($st, $si, $id) = /start=\s*(\d+),\s*size=\s*(\d+),\s*Id=\s*(\d+)/ or next;
my $part = { start => $st, size => $si, type => hex($id) };
if (isExtended($part)) {
@@ -757,7 +757,7 @@ sub rescuept($) {
push @hd, $part;
}
}
- close F or die "rescuept failed";
+ close $F or die "rescuept failed";
partition_table::raw::zero_MBR($hd);
foreach (@hd) {