From 4a6f5d821fc1095adfcd0b6faa88bfd8674c1db6 Mon Sep 17 00:00:00 2001 From: d-mb <226000998+d-mb@users.noreply.github.com> Date: Mon, 1 Sep 2025 09:19:13 -0400 Subject: [PATCH] fix: add shell=True to initial subprocess.check_call to prevent shell creation --- ffprobe/ffprobe.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ffprobe/ffprobe.py b/ffprobe/ffprobe.py index f1eb3dc..8494915 100644 --- a/ffprobe/ffprobe.py +++ b/ffprobe/ffprobe.py @@ -23,7 +23,7 @@ def __init__(self, path_to_video): try: with open(os.devnull, 'w') as tempf: - subprocess.check_call(["ffprobe", "-h"], stdout=tempf, stderr=tempf) + subprocess.check_call(["ffprobe", "-h"], stdout=tempf, stderr=tempf, shell=True) except FileNotFoundError: raise IOError('ffprobe not found.')