Avoid sending a pointless `CWD .' command which confuses some
non-standard ftp servers. PR: 21856
This commit is contained in:
parent
468e4ad11e
commit
05f7a14182
@ -163,7 +163,9 @@ mediaInitFTP(Device *dev)
|
||||
* the base directory and try again. Lots of chdirs, but oh well. :)
|
||||
*/
|
||||
for (fdir = 0; ftp_dirs[fdir]; fdir++) {
|
||||
if (ftpChdir(OpenConn, (char *)ftp_dirs[fdir]) != 0)
|
||||
/* Avoid sending CWD . commands which confuse some ftp servers */
|
||||
if (strcmp(ftp_dirs[fdir], ".") &&
|
||||
(ftpChdir(OpenConn, (char *)ftp_dirs[fdir]) != 0))
|
||||
continue;
|
||||
if (ftpChdir(OpenConn, rel) == 0) {
|
||||
ftpInitted = TRUE;
|
||||
|
Loading…
Reference in New Issue
Block a user