On Wed, 29 Jul 2009 11:21:02 -0500, McKown, John wrote:
>>
>> o RTFM
>
>I was able to. The documentation on the CD command in ftp was that the syntax 
>of the path portion was dependant on the remote ftp server requirements. Which 
>means, to me, that
>
>cd Test\ Folder
>
>or
>
>cd "Test Folder"
>
>should work. It does on my Redhat Fedora 11 system (Intel).
>
My understanting of RFC 959 is that the client undoes escaping
and the server deals with raw pathnames:

            <string> ::= <char> | <char><string>
            <char> ::= any of the 128 ASCII characters except <CR> and <LF>

            <pathname> ::= <string>

      5.3.1.  FTP COMMANDS

            CWD  <SP> <pathname> <CRLF>

      An example with an embedded double quote:

         MKD foo"bar
         257 "/usr/dm/foo""bar" directory created
         CWD /usr/dm/foo"bar
         200 directory changed to /usr/dm/foo"bar

Did we ever see a verbose trace that showed the generated CWD command?

-- gil

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to