mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
samba-tool gpo: tighter matching for ini names
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Noel Power <npower@samba.org> Autobuild-User(master): Noel Power <npower@samba.org> Autobuild-Date(master): Fri Feb 7 12:03:34 UTC 2020 on sn-devel-184
This commit is contained in:
parent
07fa6678e4
commit
beb829d0e6
@ -256,9 +256,9 @@ def find_parser(name, flags=re.IGNORECASE):
|
||||
return GptTmplInfParser()
|
||||
if re.match(r'GPT\.INI$', name, flags=flags):
|
||||
return GPTIniParser()
|
||||
if re.match('scripts.ini$', name, flags=flags):
|
||||
if re.match(r'scripts\.ini$', name, flags=flags):
|
||||
return GPScriptsIniParser()
|
||||
if re.match('psscripts.ini$', name, flags=flags):
|
||||
if re.match(r'psscripts\.ini$', name, flags=flags):
|
||||
return GPScriptsIniParser()
|
||||
if re.match(r'GPE\.INI$', name, flags=flags):
|
||||
# This file does not appear in the protocol specifications!
|
||||
|
Loading…
Reference in New Issue
Block a user