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 (????/??/??) 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. Print a more helpful error message if we cannot read the backup destination.
Closes Ubuntu bug #292586 (again). (Andrew Ferguson) Closes Ubuntu bug #292586 (again). (Andrew Ferguson)
......
...@@ -229,7 +229,7 @@ class AccessControlLists: ...@@ -229,7 +229,7 @@ class AccessControlLists:
"""Set self.entry_list and self.default_entry_list from text""" """Set self.entry_list and self.default_entry_list from text"""
self.entry_list, self.default_entry_list = [], [] self.entry_list, self.default_entry_list = [], []
for line in text.split('\n'): for line in text.split('\n'):
comment_pos = text.find('#') comment_pos = line.find('#')
if comment_pos >= 0: line = line[:comment_pos] if comment_pos >= 0: line = line[:comment_pos]
line = line.strip() line = line.strip()
if not line: continue if not line: continue
......
...@@ -742,7 +742,8 @@ class BackupSetGlobals(SetGlobals): ...@@ -742,7 +742,8 @@ class BackupSetGlobals(SetGlobals):
# Quote ", *, /, :, <, >, ?, \, |, and 127 (DEL) # Quote ", *, /, :, <, >, ?, \, |, and 127 (DEL)
ctq.append('\"*/:<>?\\\\|\177') 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) return "".join(ctq)
def compare_ctq_file(self, rbdir, suggested_ctq, force): 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