Commit 0bfd60d7 authored by owsla's avatar owsla

Fix --list-increments bug in set_must_escape_dos_devices.


git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup@792 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
parent 03505a4a
New in v1.1.10 (????/??/??)
---------------------------
Fix --list-increments bug in set_escape_dos_devices. (Marc
Dyksterhouse)
New in v1.1.9 (2007/01/29)
--------------------------
......
......@@ -603,13 +603,16 @@ class RestoreSetGlobals(SetGlobals):
def set_must_escape_dos_devices(self, rbdir):
"""If local edd or src edd, then must escape """
if getattr(self, "src_fsa", None) is not None:
src_edd = self.src_fsa.escape_dos_devices
else: src_edd = 0
device_rp = rbdir.append("aux")
if device_rp.lstat(): local_edd = 1
else: local_edd = 0
SetConnections.UpdateGlobal('must_escape_dos_devices', \
self.src_fsa.escape_dos_devices or local_edd)
src_edd or local_edd)
log.Log("Restore: must_escape_dos_devices = %d" % \
(self.src_fsa.escape_dos_devices or local_edd), 4)
(src_edd or local_edd), 4)
def set_chars_to_quote(self, rbdir):
"""Set chars_to_quote from rdiff-backup-data dir"""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment