Commit 383af038 authored by owsla's avatar owsla

Support comments in rdiff-backup's ACL files and quote the quoting character

properly if user changed it.


git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup@974 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
parent d4fccb00
New in v1.2.3 (????/??/??)
---------------------------
Support comments in rdiff-backup's ACL files and quote the quoting character
properly if user changed it. (Patch from Oliver Mulatz)
Print a more helpful error message if we cannot read the backup destination.
Closes Ubuntu bug #292586 (again). (Andrew Ferguson)
......
......@@ -229,7 +229,7 @@ class AccessControlLists:
"""Set self.entry_list and self.default_entry_list from text"""
self.entry_list, self.default_entry_list = [], []
for line in text.split('\n'):
comment_pos = text.find('#')
comment_pos = line.find('#')
if comment_pos >= 0: line = line[:comment_pos]
line = line.strip()
if not line: continue
......
......@@ -742,7 +742,8 @@ class BackupSetGlobals(SetGlobals):
# Quote ", *, /, :, <, >, ?, \, |, and 127 (DEL)
ctq.append('\"*/:<>?\\\\|\177')
if ctq: ctq.append(';') # Quote quoting char if quoting anything
# Quote quoting char if quoting anything
if ctq: ctq.append(Globals.quoting_char)
return "".join(ctq)
def compare_ctq_file(self, rbdir, suggested_ctq, force):
......
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