From 501e29fdebd8d98166d9aa919cbda95e2703b0d6 Mon Sep 17 00:00:00 2001 From: Johannes 'josch' Schauer Date: Tue, 18 Aug 2020 09:35:56 +0200 Subject: [PATCH] fix closedir calls --- mmdebstrap | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mmdebstrap b/mmdebstrap index 2967e88..53d628a 100755 --- a/mmdebstrap +++ b/mmdebstrap @@ -1911,7 +1911,7 @@ sub run_download() { } push @essential_pkgs, $deb; } - close $dh; + closedir $dh; if (scalar @essential_pkgs == 0) { # check if a file:// URI was used @@ -2398,7 +2398,7 @@ sub run_install() { } push @debs_to_install, $deb; } - close $dh; + closedir $dh; if (scalar @debs_to_install == 0) { warning "nothing got downloaded -- maybe the packages" . " were already installed?"; @@ -4071,6 +4071,7 @@ sub main() { push @keyringopts, '--keyring', "$options->{apttrustedparts}/$filename"; } + closedir $dh; if (-e $options->{apttrusted}) { push @keyringopts, '--keyring', $options->{apttrusted}; }