mirror of
https://github.com/samba-team/samba.git
synced 2025-12-24 04:23:53 +03:00
gp: Fix startup scripts add args
The args for the command could not be parsed because samba-tool detects the '-' and thinks its part of the samba-tool command. Signed-off-by: David Mulder <dmulder@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
committed by
Jeremy Allison
parent
fa4eba131b
commit
096a323a8c
@@ -3215,7 +3215,7 @@ samba-tool gpo manage scripts startup add {31B2F340-016D-11D2-945F-00C04FB984F9}
|
||||
hash.text = hashlib.md5(script_data).hexdigest().upper()
|
||||
if args is not None:
|
||||
parameters = ET.SubElement(listelement, 'parameters')
|
||||
parameters.text = args.strip('"').strip("'")
|
||||
parameters.text = args.strip('"').strip("'").replace('\\-', '-')
|
||||
if run_as is not None:
|
||||
run_as_elm = ET.SubElement(listelement, 'run_as')
|
||||
run_as_elm.text = run_as
|
||||
|
||||
Reference in New Issue
Block a user