1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +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:
Douglas Bagnall 2020-02-07 11:27:32 +13:00 committed by Noel Power
parent 07fa6678e4
commit beb829d0e6

View File

@ -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!