From: wessels <> Date: Tue, 21 Oct 1997 01:06:02 +0000 (+0000) Subject: need to set FTP_ISDIR bit if there is no urlpath X-Git-Tag: SQUID_3_0_PRE1~4767 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cefd9bac81c05268ce0e14f92f9d9d608e7c5142;p=thirdparty%2Fsquid.git need to set FTP_ISDIR bit if there is no urlpath --- diff --git a/src/ftp.cc b/src/ftp.cc index 888fdebc29..6b217401bd 100644 --- a/src/ftp.cc +++ b/src/ftp.cc @@ -1,6 +1,6 @@ /* - * $Id: ftp.cc,v 1.139 1997/10/17 00:00:36 wessels Exp $ + * $Id: ftp.cc,v 1.140 1997/10/20 19:06:02 wessels Exp $ * * DEBUG: section 9 File Transfer Protocol (FTP) * AUTHOR: Harvest Derived @@ -767,6 +767,7 @@ ftpCleanupUrlpath(FtpStateData * ftpState) if (*request->urlpath == '\0') { xstrncpy(request->urlpath, ".", MAX_URL); EBIT_SET(ftpState->flags, FTP_ROOT_DIR); + EBIT_SET(ftpState->flags, FTP_ISDIR); again = 1; } else if ((l >= 1) && (*(request->urlpath + l - 1) == '/')) { /* remove any trailing slashes from path */