Skip to content

Commit a86dac7

Browse files
committed
Use shlex.split in build call()
1 parent 63b1ee8 commit a86dac7

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

wolfssl/_build_ffi.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,14 @@ def wolfssl_lib_path():
6969

7070

7171
def call(cmd):
72-
print("Calling: '{}' from working directory {}".format(cmd, os.getcwd()))
72+
print("Calling: '{}' from working directory {}".format(
73+
cmd, os.getcwd()))
7374

7475
old_env = os.environ["PATH"]
75-
os.environ["PATH"] = "{}:{}".format(WOLFSSL_SRC_PATH, old_env)
76-
subprocess.check_call(cmd, shell=True, env=os.environ)
76+
os.environ["PATH"] = "{}:{}".format(
77+
WOLFSSL_SRC_PATH, old_env)
78+
subprocess.check_call(
79+
shlex.split(cmd), env=os.environ)
7780
os.environ["PATH"] = old_env
7881

7982

0 commit comments

Comments
 (0)