From 53cf5ca9a30fe856793d2a38b52c8b78b2aba17b Mon Sep 17 00:00:00 2001 From: joey Date: Wed, 16 Aug 2006 17:37:36 +0000 Subject: [PATCH] * Fix an infinite loop in the aggregator when finding a unique filename. --- IkiWiki/Plugin/aggregate.pm | 2 +- debian/changelog | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/IkiWiki/Plugin/aggregate.pm b/IkiWiki/Plugin/aggregate.pm index 23428cb0e..6c9958df8 100644 --- a/IkiWiki/Plugin/aggregate.pm +++ b/IkiWiki/Plugin/aggregate.pm @@ -267,7 +267,7 @@ sub add_page (@) { #{{{ $page=$feed->{dir}."/item"; } my $c=""; - while (exists $IkiWiki::pagecase{lc $page} || + while (exists $IkiWiki::pagecase{lc $page.$c} || -e pagefile($page.$c)) { $c++ } diff --git a/debian/changelog b/debian/changelog index e89a57cb1..e917f155f 100644 --- a/debian/changelog +++ b/debian/changelog @@ -2,8 +2,9 @@ ikiwiki (1.19) UNRELEASED; urgency=low * Fix several related bugs in page type determination during online editing. * Add some locking to prevent 2 aggregators from running at once. + * Fix an infinite loop in the aggregator when finding a unique filename. - -- Joey Hess Wed, 16 Aug 2006 13:28:34 -0400 + -- Joey Hess Wed, 16 Aug 2006 13:32:27 -0400 ikiwiki (1.18) unstable; urgency=low -- 2.44.0