Public bug reported:

So, it's duplicity 0.6.18
in Python 2.7.3
under 3.2.0-29-generic x86_64
from Ubuntu 12.04 LTS server
on amd64-based hp n36l microserver
talking to olbiz.net
served by Pure-FTPd using TLS
backed by GlusterFS.

The duplicity is being ran via duply version 1.5.5.4
Using installed duplicity version 0.6.18, python 2.7.3, gpg 1.4.11, awk 'GNU 
Awk 3.1.8', bash '4.2.24(1)-release (x86_64-pc-linux-gnu)'.

One may see this "error" (actually, annoying misfeature):

Running 'lftp -c 'source /tmp/duplicity-CmoCxx-tempdir/mkstemp-4Typ9m-1;cd 
'backup3/blackbox/';rm '' failed with code 1 (attempt #2)
Error is:
Usage: rm [-r] [-f] files...

in my case it's in /usr/share/pyshared/duplicity/backends/ftpsbackend.py
@ delete() method def

I'd propose to guard the last 3 lines (remote_dir = ...; command_line =
...; self.popen_persist(commandline)) with something like

if filelist.rstrip() : # don't even try to remove empty names

I.e. just do nothing if no filenames were given to remove.

** Affects: duplicity
     Importance: Undecided
         Status: New

** Affects: ubuntu
     Importance: Undecided
         Status: New


** Tags: duplicity misfeature

** Also affects: ubuntu
   Importance: Undecided
       Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1104069

Title:
  Empty file name removal

To manage notifications about this bug go to:
https://bugs.launchpad.net/duplicity/+bug/1104069/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to