summaryrefslogtreecommitdiffstats
path: root/perl-install/timezone.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/timezone.pm')
-rw-r--r--perl-install/timezone.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/timezone.pm b/perl-install/timezone.pm
index b14dba9b0..c6fe47e53 100644
--- a/perl-install/timezone.pm
+++ b/perl-install/timezone.pm
@@ -9,7 +9,7 @@ use log;
sub getTimeZones() {
my $prefix = $::testing ? '' : $::prefix;
- open(my $F, "cd $prefix/usr/share/zoneinfo && find [A-Z]* -type f |");
+ open(my $F, "find $prefix/usr/share/zoneinfo/[A-Z]* -noleaf -type f |");
my @l = difference2([ chomp_(<$F>) ], [ 'ROC', 'PRC' ]);
close $F or die "cannot list the available zoneinfos";
sort @l;