Commit 6a42dde1 authored by dgaudet's avatar dgaudet

DOS filename quoting adjustments from Marc Dyksterhouse.


git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup@782 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
parent d8ebce10
......@@ -2,9 +2,10 @@ New in v1.1.8 (????/??/??)
--------------------------
Add "FilenameMapping.set_init_quote_vals" security exception.
[Marc Dyksterhouse]
(Marc Dyksterhouse)
Escape DOS device filenames when necessary. [Marc Dyksterhouse]
Escape DOS device filenames when necessary. Adjust DOS filename
quoting to work properly with cygwin. (Marc Dyksterhouse)
Allow for preservation of FinderInfo for folders and fix typo
in Time.py. (Patch from Andrew Ferguson.)
......
......@@ -541,11 +541,13 @@ class BackupSetGlobals(SetGlobals):
if self.src_fsa.case_sensitive and not self.dest_fsa.case_sensitive:
if self.dest_fsa.extended_filenames:
return "A-Z;" # Quote upper case and quoting char
else: return "^a-z0-9_ .-" # quote everything but basic chars
# Quote the following 0 - 31, ", *, /, :, <, >, ?, \, |, ;
# Also quote uppercase A-Z
else: return 'A-Z\000-\037\"*/:<>?\\\\|\177;'
if self.dest_fsa.extended_filenames:
return "" # Don't quote anything
else: return "^A-Za-z0-9_ .-"
else: return '\000-\037\"*/:<>?\\\\|\177;'
def compare_ctq_file(self, rbdir, suggested_ctq):
"""Compare ctq file with suggested result, return actual ctq"""
......
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