From 2ccd65af3b44ef413c3746f8857ed9a1bff1b5b6 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 3 Aug 2017 23:48:57 +0200 Subject: FTP: skip unnecessary CWD when in nocwd mode ... when reusing a connection. If it didn't do any CWD previously. Fixes #1718 --- lib/ftp.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/ftp.h') diff --git a/lib/ftp.h b/lib/ftp.h index 3bbf26206..9c6c2c8de 100644 --- a/lib/ftp.h +++ b/lib/ftp.h @@ -7,7 +7,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * - * Copyright (C) 1998 - 2016, Daniel Stenberg, , et al. + * Copyright (C) 1998 - 2017, Daniel Stenberg, , et al. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms @@ -130,6 +130,7 @@ struct ftp_conn { should be FALSE when it gets to Curl_ftp_quit() */ bool cwddone; /* if it has been determined that the proper CWD combo already has been done */ + int cwdcount; /* number of CWD commands issued */ bool cwdfail; /* set TRUE if a CWD command fails, as then we must prevent caching the current directory */ bool wait_data_conn; /* this is set TRUE if data connection is waited */ -- cgit v1.2.3