summaryrefslogtreecommitdiffstats
path: root/perl-install/resize_fat/io.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/resize_fat/io.pm')
-rw-r--r--perl-install/resize_fat/io.pm5
1 files changed, 2 insertions, 3 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";
}
}