MDTM and spaces in filenames
Schiefelbein, Mary Curran <nachbar <at> ll.mit.edu>
2008-10-20 19:49:23 GMT
Hi,
There seems to be a bug in which filenames are not quoted, or spaces are not escaped, when MDTM is issed by lftp.
I am trying to mirror a directory. The directory and the files in it each have spaces in their names (not by my
choice ;). When lftp issues CWD into the directory, it works, but MDTM commands fail and when the files are
retrieved, the timestamps are not preserved. Here's a bit of a log:
lftp -c "open 192.168.1.2; mirror 'logs/foo/run 20081009-073139'"
---- Resolving host address...
---- 3 addresses found
---- Connecting to 192.168.1.2 (192.168.1.2) port 21
<--- 220-Cerberus FTP Server Personal Edition
<--- 220-UNREGISTERED
<--- 220-Welcome to Cerberus FTP Server
<--- 220 Created by Grant Averett
---> FEAT
<--- 500 Not logged in
---> USER anonymous
<--- 331 User anonymous, password please
---> PASS lftp <at>
<--- 230 Password Ok, User logged in
---> PWD
<--- 257 "/" is the current directory
---> CWD /logs/foo/run 20081009-073139
<--- 250 Change directory ok
---> PASV
<--- 227 Entering Passive Mode (192,168,1,2,28,82)
---- Connecting data socket to (192.168.1.2) port 7250
---- Data connection established
(Continue reading)