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

Bug #1541314 reported by kay on 2016-02-03
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Duplicity
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"]

kay (kay-diam) wrote :
kay (kay-diam) wrote :

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

Applied to 0.6 and 0.7 trunks.

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

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

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  Edit
Everyone can see this information.

Other bug subscribers