--- curl-7.17.1-20070925/lib/ftp.c  2007-09-25 04:00:02.000000000 +0200
+++ curl/lib/ftp.c	2007-09-27 10:13:51.815093800 +0200
@@ -3883,8 +3883,9 @@
     }
 
     dlen = strlen(path) - (ftp->file?strlen(ftp->file):0);
-    if((dlen == strlen(ftpc->prevpath)) &&
-       curl_strnequal(path, ftpc->prevpath, dlen)) {
+    if(((dlen == strlen(ftpc->prevpath)) &&
+       curl_strnequal(path, ftpc->prevpath, dlen)) ||
+       (conn->data->set.ftp_filemethod == FTPFILE_NOCWD)){
       infof(data, "Request has same path as previous transfer\n");
       ftpc->cwddone = TRUE;
     }
