summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install')
-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) {