From 58cd4cf94d7c4db40872760dc8f23b1ce4ec75f2 Mon Sep 17 00:00:00 2001 From: "Andreas J. Koenig" Date: Tue, 7 Oct 2008 22:37:09 +0200 Subject: [PATCH] fix bug where --max was forgotten --- lib/File/Rsync/Mirror/Recentfile.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/File/Rsync/Mirror/Recentfile.pm b/lib/File/Rsync/Mirror/Recentfile.pm index 20890c7..9a7932b 100644 --- a/lib/File/Rsync/Mirror/Recentfile.pm +++ b/lib/File/Rsync/Mirror/Recentfile.pm @@ -1316,7 +1316,7 @@ sub recent_events { $rfile_or_tempfile, ); } - return $re unless defined $options{after}; # XXX same for before and max + return $re unless grep {defined $options{$_}} qw(after before max); my $last_item = $#$re; if ($info) { $info->{first} = $re->[0]; -- 2.11.4.GIT