aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Iurt/Chroot.pm
diff options
context:
space:
mode:
authorOlivier Blin <blino@mageia.org>2011-01-13 12:42:41 +0000
committerOlivier Blin <blino@mageia.org>2011-01-13 12:42:41 +0000
commite9fe96e5d2a9c3245aca5728ae62d54a1dea8ffa (patch)
treefc38602842f034bc3b53e898a7044b58f6ba1eda /lib/Iurt/Chroot.pm
parent52c6bf712bc25b1dd318d3c485f847133f26243d (diff)
downloadiurt-e9fe96e5d2a9c3245aca5728ae62d54a1dea8ffa.tar
iurt-e9fe96e5d2a9c3245aca5728ae62d54a1dea8ffa.tar.gz
iurt-e9fe96e5d2a9c3245aca5728ae62d54a1dea8ffa.tar.bz2
iurt-e9fe96e5d2a9c3245aca5728ae62d54a1dea8ffa.tar.xz
iurt-e9fe96e5d2a9c3245aca5728ae62d54a1dea8ffa.zip
add missing parentheses in open calls
Diffstat (limited to 'lib/Iurt/Chroot.pm')
-rw-r--r--lib/Iurt/Chroot.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Iurt/Chroot.pm b/lib/Iurt/Chroot.pm
index 6464f49..7b18acc 100644
--- a/lib/Iurt/Chroot.pm
+++ b/lib/Iurt/Chroot.pm
@@ -287,7 +287,7 @@ sub remove_chroot {
plog('DEBUG', "... dir $dir all $run->{clean_all} prefix $prefix");
if ($run->{clean_all}) {
- opendir my $chroot_dir, $dir;
+ opendir(my $chroot_dir, $dir);
foreach (readdir $chroot_dir) {
next if !-d "$dir/$_" || /\.{1,2}/;
plog("cleaning old chroot for $_ in $dir");