From ca85801d15e119ee8269a101b5fa8c60f99f59a6 Mon Sep 17 00:00:00 2001 From: "phajdan.jr@chromium.org" Date: Fri, 27 Mar 2015 15:21:53 +0000 Subject: [PATCH] Adjust file name blacklist in patch.py - allow the percent sign ('%') - disallow characters from Windows blacklist https://msdn.microsoft.com/en-us/library/windows/desktop/aa365247.aspx#naming_conventions BUG=467152 Review URL: https://codereview.chromium.org/1035193002 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@294591 0039d316-1c4b-4281-b951-d872f2087c98 --- patch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patch.py b/patch.py index 9b65ce1cf..7dcefc011 100644 --- a/patch.py +++ b/patch.py @@ -50,7 +50,7 @@ class FilePatchBase(object): def _process_filename(filename): filename = filename.replace('\\', '/') # Blacklist a few characters for simplicity. - for i in ('%', '$', '..', '\'', '"'): + for i in ('$', '..', '\'', '"', '<', '>', ':', '|', '?', '*'): if i in filename: raise UnsupportedPatchFormat( filename, 'Can\'t use \'%s\' in filename.' % i)