From f78f8cfbdef22b25be4ffe1fae4a4cc404bfbf5c Mon Sep 17 00:00:00 2001 From: alpha Date: Mon, 5 Oct 2020 18:01:00 +0200 Subject: fix command test in jail_prober.py --- contrib/jail_prober.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'contrib') diff --git a/contrib/jail_prober.py b/contrib/jail_prober.py index 6f8e98b6a..892e28f79 100755 --- a/contrib/jail_prober.py +++ b/contrib/jail_prober.py @@ -114,7 +114,10 @@ def run_firejail(program, allArgs): print('Attempting to run %s in Firejail' % program) for arg in allArgs: print('Running with', arg) - subprocess.call(goodArgs) + #We are adding the argument in a copy of the actual list to avoid modify it now. + myargs=goodArgs.copy() + myargs.insert(-1,arg) + subprocess.call(myargs) ans = input('Did %s run correctly? [y]/n ' % program) if ans in ['n', 'N']: badArgs.append(arg) -- cgit v1.2.3-54-g00ecf