cURL / Mailing Lists / curl-users / Single Mail

curl-users

Problem with Microsoft 2003 ftp server

From: Eric VERGNAUD <eric.vergnaud_at_jlynx.com>
Date: Thu, 13 May 2004 12:48:34 +0200

Hi,

I'm having the following problem with a Microsoft 2003 ftp server.

When a user named John connects to the server, and curl sends a PWD command
to discover the entry point, the server returns:

 /John/RootDir/SubDir/Etc/

Rather than

/RootDir/SubDir/Etc/

My guess is that this scheme allows the server to work on per-user virtual
directories.

However, when curl then issues a series of CWD command to switch to the
target directory, using ftp_cwd_and_mkd, the first call fails with a 550
(file doesn't exist).

Is the Microsoft ftp server behaviour RFC compliant ?

If so, would it be correct to check for equality between user name and
directory name for the first path component BEFORE issuing a ftp_cwd_and mkd
call, or is it better to check for the error after ?

Other ftp clients like transmit seem to support this behaviour, so I've
changed the code in ftp.c to support this, who should I send this to ?

-------------------------------
Eric VERGNAUD - JLynx Software
Cutting-edge technologies and
services for software companies
web: http://www.jlynx.com
-------------------------------
Received on 2004-05-13