From: wessels <> Date: Sat, 30 Jan 1999 00:22:42 +0000 (+0000) Subject: spaces in DOS listings (again?!) X-Git-Tag: SQUID_3_0_PRE1~2338 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=20f880678649104785c5f75e3928af8f0b0eb196;p=thirdparty%2Fsquid.git spaces in DOS listings (again?!) --- diff --git a/src/ftp.cc b/src/ftp.cc index 83bb79bfb2..1098dcb095 100644 --- a/src/ftp.cc +++ b/src/ftp.cc @@ -1,6 +1,6 @@ /* - * $Id: ftp.cc,v 1.278 1999/01/24 02:26:23 wessels Exp $ + * $Id: ftp.cc,v 1.279 1999/01/29 17:22:42 wessels Exp $ * * DEBUG: section 9 File Transfer Protocol (FTP) * AUTHOR: Harvest Derived @@ -531,7 +531,23 @@ ftpListParseParts(const char *buf, struct _ftp_flags flags) } snprintf(sbuf, 128, "%s %s", tokens[0], tokens[1]); p->date = xstrdup(sbuf); - p->name = xstrdup(tokens[3]); + if (p->type == 'd') { + /* Directory.. name begins with first printable after