From 62d437f1be2aeb5601ebb3593042527b999d8748 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Fri, 24 Feb 2006 11:38:17 +0000 Subject: use -noleaf option when finding timezones (useful over unionfs, backport for #21272) --- perl-install/timezone.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.1