From beb829d0e6477f4f82758b2d646c3e21634c768d Mon Sep 17 00:00:00 2001 From: Douglas Bagnall Date: Fri, 7 Feb 2020 11:27:32 +1300 Subject: [PATCH] samba-tool gpo: tighter matching for ini names Signed-off-by: Douglas Bagnall Reviewed-by: Noel Power Autobuild-User(master): Noel Power Autobuild-Date(master): Fri Feb 7 12:03:34 UTC 2020 on sn-devel-184 --- python/samba/netcmd/gpo.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/samba/netcmd/gpo.py b/python/samba/netcmd/gpo.py index a210922da01..4b08c62d773 100644 --- a/python/samba/netcmd/gpo.py +++ b/python/samba/netcmd/gpo.py @@ -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!