Skip to content

Commit e423b7c

Browse files
committed
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.
1 parent a53e235 commit e423b7c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

snekbox/nsjail.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,9 +221,9 @@ def python3(
221221
*nsjail_args,
222222
"--",
223223
self.config.exec_bin.path,
224-
*self.config.exec_bin.arg,
225-
# Filter out empty strings at start of py_args
224+
# Filter out empty strings at start of Python args
226225
# (causes issues with python cli)
226+
*iter_lstrip(self.config.exec_bin.arg),
227227
*iter_lstrip(py_args),
228228
]
229229

0 commit comments

Comments
 (0)