From 5a425b2aeda996d3142b6f4f7af0a597c9618d77 Mon Sep 17 00:00:00 2001 From: dgaudet Date: Mon, 29 Jan 2007 17:11:18 +0000 Subject: DOS filename quoting adjustments from Marc Dyksterhouse. git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup/trunk@782 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109 --- rdiff-backup/rdiff_backup/fs_abilities.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'rdiff-backup/rdiff_backup/fs_abilities.py') diff --git a/rdiff-backup/rdiff_backup/fs_abilities.py b/rdiff-backup/rdiff_backup/fs_abilities.py index c9011f1..0bd57e8 100644 --- a/rdiff-backup/rdiff_backup/fs_abilities.py +++ b/rdiff-backup/rdiff_backup/fs_abilities.py @@ -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""" -- cgit v1.2.1