Bug 220316

Summary: sftp -p error in duplicity 0.4.2-5.fc6
Product: [Fedora] Fedora Reporter: Callum Macdonald <bugzilla.redhat.com>
Component: duplicityAssignee: Robert Scheck <redhat-bugzilla>
Status: CLOSED NEXTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: medium    
Version: 6   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-12-20 13:56:19 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
/usr/lib/python2.X/site-packages/duplicity/backends.py none

Description Callum Macdonald 2006-12-20 12:12:48 UTC
Description of problem:
Upgrading to the recently released 0.4.2-5.fc6 breaks sftp support. The error
reported is:
sftp: illegal option -- p

The command duplicity is calling is:
'echo -e 'cd dir/
ls -1' | sftp -p 22 -b - sitename'

Version-Release number of selected component (if applicable):
0.4.2-5.fc6

How reproducible:
Try any sftp based backup.

Additional info:

I haven't tested this particularly thoroughly. I downgraded to the previous
release (0.4.2-3.fc6) and it works again. I left it at that.

Comment 1 Robert Scheck 2006-12-20 12:44:55 UTC
Created attachment 144094 [details]
/usr/lib/python2.X/site-packages/duplicity/backends.py

Comment 2 Robert Scheck 2006-12-20 12:48:02 UTC
Can you please try to replace your "/usr/lib/python2.4/site-packages/duplicity/
backends.py" file by the attachment above and re-try to see whether the problem 
is solved? Please note, that duplicity the first time should be executed as root 
to re-generate the backends.pyc and backends.pyo files caused by my change.

Could you also tell me the command how are you calling duplicity itself? I never 
used the sftp support and so I'm ending up in: Unknown protocol 'sftp' :(

Comment 3 Robert Scheck 2006-12-20 13:22:07 UTC
Comment on attachment 144094 [details]
/usr/lib/python2.X/site-packages/duplicity/backends.py

Ush...please ignore what I wrote, the whole patch is heavily broken, even if
the original idea of the author was very good.

Comment 4 Robert Scheck 2006-12-20 13:56:19 UTC
Your problem should disappear in 0.4.2-6 again...sorry!

Comment 5 Callum Macdonald 2006-12-21 07:52:20 UTC
Great, thanks for the super swift response, I'll hold off upgrading till I see
0.4.2-6 pop up in the repo... :)