If directory contains "open" word duplicity will fail with pexpect and sftp

Bug #1541314 reported by kay
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Duplicity
Fix Released
Medium
Unassigned

Bug Description

This is because pexpect backend uses regexp with brackets which are not escaped:

http://bazaar.launchpad.net/~duplicity-team/duplicity/0.7-series/view/head:/duplicity/backends/ssh_pexpect_backend.py#L162

fix is simple:

- "open(.*): Failure"]
+ "open\(.*\): Failure"]

Revision history for this message
kay (kay-diam) wrote :
Revision history for this message
kay (kay-diam) wrote :

In addition, new patch will handle 'non-directory' error.

Revision history for this message
Kenneth Loafman (kenneth-loafman) wrote :

Applied to 0.6 and 0.7 trunks.

Changed in duplicity:
importance: Undecided → Medium
milestone: none → 0.7.07
status: New → Fix Committed
Revision history for this message
kay (kay-diam) wrote :
Revision history for this message
kay (kay-diam) wrote :

I mean these strings: "elif match == 10:"

Revision history for this message
kay (kay-diam) wrote :

Also it looks like "elif match == 10:" should not be applied on 0.7 branch.

Changed in duplicity:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.