os.execve should get passed program as first argument
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Duplicity |
Fix Released
|
Medium
|
Unassigned | ||
duplicity (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
When running duplicity again after it failed before (bug 637528), duplicity restarts itself internally.
The code being used however is:
os.
which leads to the first argument not being processed properly.
The python doc says: "the arguments to the child process should start with the name of the command being run, but this is not enforced." (http://
# /usr/bin/duplicity --name duply_foo --no-encryption --verbosity 5 --volsize 100 --exclude-
Last inc backup left a partial set, restarting.
Last full backup date: Mon Sep 13 19:45:01 2010
RESTART: The first volume failed to upload before termination.
Restart is impossible.
Deleting /path/to/
Deleting /home/user/
Deleting /home/user/
Command line error: Expected 2 args, got 3
Enter 'duplicity --help' for help screen.
Using temporary directory /tmp/duplicity-
The correct code to be used appears to be:
os.
This is being used twice in Duplicity 0.6.09.
Related branches
- duplicity-team: Pending requested
-
Diff: 1552 lines (+668/-245)18 files modifieddist/makedist (+58/-35)
dist/setup.py (+9/-10)
duplicity-bin (+96/-17)
duplicity.1 (+5/-3)
duplicity/GnuPGInterface.py (+215/-127)
duplicity/backend.py (+14/-1)
duplicity/backends/localbackend.py (+10/-1)
duplicity/commandline.py (+14/-1)
duplicity/compilec.py (+16/-3)
duplicity/dup_temp.py (+9/-5)
duplicity/globals.py (+48/-5)
duplicity/manifest.py (+9/-3)
duplicity/patchdir.py (+15/-0)
duplicity/path.py (+102/-17)
duplicity/selection.py (+21/-11)
duplicity/tarfile.py (+6/-2)
po/update-pot (+0/-4)
po/update-pot.py (+21/-0)
Changed in duplicity (Ubuntu): | |
importance: | Undecided → Medium |
status: | New → Triaged |
Changed in duplicity: | |
status: | New → Fix Committed |
importance: | Undecided → Medium |
milestone: | none → 0.6.11 |
Changed in duplicity: | |
status: | Fix Committed → Fix Released |
This bug was fixed in the package duplicity - 0.6.11-0ubuntu1
---------------
duplicity (0.6.11-0ubuntu1) natty; urgency=low
* New upstream release patches/ 04fixrsyncbacke nd.patch:
- os.execve should get passed program as first argument (LP: #637556)
* debian/
- Remove previous patch, as it was applied upstream
- Change it to fix new upstream rsync backend bug, 681980
-- Michael Terry <email address hidden> Fri, 26 Nov 2010 22:16:04 -0500