URL:
<http://savannah.nongnu.org/bugs/?24741>
Summary: ncftpls -x '' causes failure on Yahoo FTP server
Project: duplicity
Submitted by: blueyed
Submitted on: Mon 03 Nov 2008 11:06:34 PM GMT
Category: None
Severity: 3 - Normal
Item Group: None
Status: None
Privacy: Public
Assigned to: None
Originator Email:
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
I'm forwarding a bug from Ubuntu (https://launchpad.net/bugs/245740):
Duplicity runs ncftpls like this:
ncftpls -x '' -f t1 -F -t 30 ftp://ftp.agileskills2.org/
in which -x '' causes it to fail (exit code = 3, ie, transfer error), at
least on my
Yahoo ftp server. To fix it, I modified the file
/usr/lib/python2.5/site-packages/duplicity/backends.py and changed the
line from:
commandline = "ncftpls -x '' %s '%s'" % \
(self.flags, self.url_string)
To:
commandline = "ncftpls -x '-t' %s '%s'" % \
(self.flags, self.url_string)
[...]
Yes, using 0.4.10-1 on Hardy.
Omitting -x entirely works.
I don't know what FTP server Yahoo uses. The output of the SYST FTP command
is:
UNIX Type: L8 Version: BSD-199506
However, isn't that an issue with ncftpls? If it finds -x has an empty
argument, it should
really not pass any extra ls argument to the remote site. In addition, in the
FTP RFC
(http://tools.ietf.org/html/rfc959), I don't find a way to pass ls arguments
to the FTP
server at all! So this is really an implementation specific behavior that
can't be replied
on.
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/bugs/?24741>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/
_______________________________________________
Duplicity-tracker mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/duplicity-tracker