From: serassio <> Date: Sun, 26 Feb 2006 18:27:16 +0000 (+0000) Subject: Bug #1508: Error in FTP listings of files with -> in their name X-Git-Tag: SQUID_3_0_PRE4~310 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=38ebaefc46468853fc20292f727495e24c288693;p=thirdparty%2Fsquid.git Bug #1508: Error in FTP listings of files with -> in their name Forward port of 2.5 patch. --- diff --git a/src/ftp.cc b/src/ftp.cc index 5985b1a87d..cd4493e979 100644 --- a/src/ftp.cc +++ b/src/ftp.cc @@ -1,6 +1,6 @@ /* - * $Id: ftp.cc,v 1.388 2006/02/26 10:39:32 serassio Exp $ + * $Id: ftp.cc,v 1.389 2006/02/26 11:27:16 serassio Exp $ * * DEBUG: section 9 File Transfer Protocol (FTP) * AUTHOR: Harvest Derived @@ -730,7 +730,7 @@ ftpListParseParts(const char *buf, struct _ftp_flags flags) p->name = xstrdup(copyFrom); - if ((t = strstr(p->name, " -> "))) { + if (p->type == 'l' && (t = strstr(p->name, " -> "))) { *t = '\0'; p->link = xstrdup(t + 4); }