summaryrefslogtreecommitdiff
path: root/lib/ftp.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2017-08-03 23:48:57 +0200
committerDaniel Stenberg <daniel@haxx.se>2017-08-04 10:01:23 +0200
commit2ccd65af3b44ef413c3746f8857ed9a1bff1b5b6 (patch)
tree18648df385477232a33cd68c6b142b8a8b6205b6 /lib/ftp.h
parentb7386c0ac96e70a5f2bddeea5ba742d56d1c1fb7 (diff)
downloadcurl-2ccd65af3b44ef413c3746f8857ed9a1bff1b5b6.tar.gz
FTP: skip unnecessary CWD when in nocwd mode
... when reusing a connection. If it didn't do any CWD previously. Fixes #1718
Diffstat (limited to 'lib/ftp.h')
-rw-r--r--lib/ftp.h3
1 files changed, 2 insertions, 1 deletions
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, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2017, Daniel Stenberg, <daniel@haxx.se>, 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 */