From 41859d952af6400517208892d4e20bf0c750fbd4 Mon Sep 17 00:00:00 2001 From: "Andreas J. Koenig" Date: Sat, 4 Jun 2011 13:29:50 +0200 Subject: [PATCH] yet another symlink bug spotted by Henk P. Penning --- lib/File/Rsync/Mirror/Recentfile.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/File/Rsync/Mirror/Recentfile.pm b/lib/File/Rsync/Mirror/Recentfile.pm index 8e4044b..9a29c7e 100644 --- a/lib/File/Rsync/Mirror/Recentfile.pm +++ b/lib/File/Rsync/Mirror/Recentfile.pm @@ -1184,9 +1184,10 @@ sub _mirror_item { if ($options->{'skip-deletes'}) { $activity = "skipped"; } else { - if (! -e $dst) { + my @lstat = lstat $dst; + if (! -e _) { $activity = "not_found"; - } elsif (-l $dst or not -d _) { + } elsif (-l _ or not -d _) { $self->delayed_operations->{unlink}{$dst}++; $activity = "deleted"; } else { -- 2.11.4.GIT