diff options
author | Ceesjan Luiten <ceesjan@ytec.nl> | 2023-10-06 14:47:20 +0200 |
---|---|---|
committer | Ceesjan Luiten <ceesjan@ytec.nl> | 2023-10-07 19:58:41 +0200 |
commit | 7afa8d462630b3924cc83affe87a60830ff7726b (patch) | |
tree | 73ae1cd7e6fa4eb1d6562facb4f451af9ac6f101 /scripts | |
parent | 8fc0944950a00de6cebfb8bf781771fa6801c3cc (diff) |
Prevent CLI argument issues
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/glibc_check.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/scripts/glibc_check.py b/scripts/glibc_check.py index 8c1585e6e..a70645ebf 100755 --- a/scripts/glibc_check.py +++ b/scripts/glibc_check.py @@ -12,7 +12,6 @@ import subprocess import sys verbose = True -objdump = "objdump -T %s" glibc_re = re.compile(r"GLIBC_([0-9]\.[0-9]+)") @@ -32,7 +31,7 @@ def main(): overall_versions = set() for filename in filenames: try: - output = subprocess.check_output(objdump % filename, shell=True, stderr=subprocess.STDOUT) + output = subprocess.check_output(["objdump", "-T", filename], stderr=subprocess.STDOUT) output = output.decode() versions = {parse_version(match.group(1)) for match in glibc_re.finditer(output)} requires_glibc = max(versions) |