diff options
author | owsla <owsla@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109> | 2008-12-19 14:59:34 +0000 |
---|---|---|
committer | owsla <owsla@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109> | 2008-12-19 14:59:34 +0000 |
commit | 8cf1aca616e5cb5ac44efae8d89795691b4d6eb5 (patch) | |
tree | ec3adfe2e8ac6db4eb22b551c7e6dbdd840574bc /rdiff-backup/rdiff_backup | |
parent | add2853f92fc45d2b892ac76ac3c8659fc404cc8 (diff) | |
download | rdiff-backup-8cf1aca616e5cb5ac44efae8d89795691b4d6eb5.tar.gz |
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/trunk@974 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
Diffstat (limited to 'rdiff-backup/rdiff_backup')
-rw-r--r-- | rdiff-backup/rdiff_backup/eas_acls.py | 2 | ||||
-rw-r--r-- | rdiff-backup/rdiff_backup/fs_abilities.py | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/rdiff-backup/rdiff_backup/eas_acls.py b/rdiff-backup/rdiff_backup/eas_acls.py index 02f163c..7052373 100644 --- a/rdiff-backup/rdiff_backup/eas_acls.py +++ b/rdiff-backup/rdiff_backup/eas_acls.py @@ -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 diff --git a/rdiff-backup/rdiff_backup/fs_abilities.py b/rdiff-backup/rdiff_backup/fs_abilities.py index 902242b..aeb0125 100644 --- a/rdiff-backup/rdiff_backup/fs_abilities.py +++ b/rdiff-backup/rdiff_backup/fs_abilities.py @@ -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): |