From 7537c7e341948ee6e0ff5170a5a056d80a82cfde Mon Sep 17 00:00:00 2001 From: Darshit Shah Date: Thu, 7 May 2015 09:59:25 +0530 Subject: [PATCH] Fix #45037: Wget deletes wrong Symlink in ftp * ftp.c (ftp_loop_internal): Call remove_link() on the actual file name to be retrieved, not the filename in .LISTING. Reported-by: Joey Hess Noel Koethe --- src/ftp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ftp.c b/src/ftp.c index 68f1a33..0abd543 100644 --- a/src/ftp.c +++ b/src/ftp.c @@ -1589,7 +1589,7 @@ ftp_loop_internal (struct url *u, struct fileinfo *f, ccon *con, char **local_fi } /* Remove it if it's a link. */ - remove_link (con->target); + remove_link (locf); count = 0; -- 2.3.7