--- tool_operate.c	Thu Apr 21 10:38:43 2016
+++ tool_operate.c.new	Fri Apr 22 05:02:00 2016
@@ -1181,8 +1181,9 @@
         }
 
         /* new in curl 7.10.7, extended in 7.19.4 but this only sets 0 or 1 */
+        /* modified in 7.49.0 to set 0 or 2 (retry CWD after MKD fail) */
         my_setopt(curl, CURLOPT_FTP_CREATE_MISSING_DIRS,
-                  config->ftp_create_dirs?1L:0L);
+                  config->ftp_create_dirs?2L:0L);
 
         /* new in curl 7.10.8 */
         if(config->max_filesize)
