Commit 76a07476 authored by bescoto's avatar bescoto

Check and fix for bug 14545


git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup@633 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
parent 6b8fae3e
New in v1.0.2 (????/??/??)
--------------------------
Fix for bug 14545 which was introduced in version 1.0.1: Quoting
caused a spurious security violation. (Important for Mac OS X)
New in v1.0.1 (2005/09/10)
--------------------------
......
......@@ -435,9 +435,7 @@ def backup_set_fs_globals(rpin, rpout):
SetConnections.UpdateGlobal('fsync_directories', dest_fsa.fsync_dirs)
SetConnections.UpdateGlobal('change_ownership', dest_fsa.ownership)
SetConnections.UpdateGlobal('chars_to_quote', dest_fsa.chars_to_quote)
if Globals.chars_to_quote:
for conn in Globals.connections:
conn.FilenameMapping.set_init_quote_vals()
if Globals.chars_to_quote: FilenameMapping.set_init_quote_vals()
def backup_touch_curmirror_local(rpin, rpout):
"""Make a file like current_mirror.time.data to record time
......
......@@ -200,6 +200,13 @@ class SecurityTest(unittest.TestCase):
output = rpath.RPath(Globals.local_connection, 'testfiles/output')
assert not output.lstat()
def test_quoting_bug(self):
"""Test for bug 14545 --- quoting causes bad violation"""
Myrm('testfiles/output')
self.secure_rdiff_backup('testfiles/various_file_types',
'testfiles/output', 1, '',
extra_args = '--override-chars-to-quote e')
if __name__ == "__main__": unittest.main()
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