From cefd9bac81c05268ce0e14f92f9d9d608e7c5142 Mon Sep 17 00:00:00 2001 From: wessels <> Date: Tue, 21 Oct 1997 01:06:02 +0000 Subject: [PATCH] need to set FTP_ISDIR bit if there is no urlpath --- src/ftp.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 */ -- 2.47.2