diff options
author | 2023-08-19 20:33:53 -0700 | |
---|---|---|
committer | 2023-08-19 20:42:57 -0700 | |
commit | e423b7cf339d6c2ae16f6696a092a296a4d25f3a (patch) | |
tree | 20f1d762d19efd74d0121b3fb290cb837cd57d6e | |
parent | Use --link with COPY in Dockerfile (diff) |
Remove leading empty strings from NsJail config args
Prevent an empty exec_bin.args from manifesting as an empty string in
the fully built arguments.
-rw-r--r-- | snekbox/nsjail.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/snekbox/nsjail.py b/snekbox/nsjail.py index f64830a..1de7b1e 100644 --- a/snekbox/nsjail.py +++ b/snekbox/nsjail.py @@ -221,9 +221,9 @@ class NsJail: *nsjail_args, "--", self.config.exec_bin.path, - *self.config.exec_bin.arg, - # Filter out empty strings at start of py_args + # Filter out empty strings at start of Python args # (causes issues with python cli) + *iter_lstrip(self.config.exec_bin.arg), *iter_lstrip(py_args), ] |