From: Ján Tomko Date: Fri, 7 Nov 2025 14:44:09 +0000 (+0100) Subject: scripts: do not use uninitialized variable X-Git-Tag: CVE-2025-12748~61 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a088734d570e916c35a53447e281b9d04fc2a380;p=thirdparty%2Flibvirt.git scripts: do not use uninitialized variable A previous commit removed the 'ret' variable when switching to subprocess.run, but did not adjust the exit code. Fixes: 15c9ca383c2a814c61cc4ed16b4dad91221d8129 Signed-off-by: Ján Tomko --- diff --git a/scripts/check-file-access.py b/scripts/check-file-access.py index 71130d4dec..42c9c6b989 100755 --- a/scripts/check-file-access.py +++ b/scripts/check-file-access.py @@ -42,7 +42,7 @@ proc = subprocess.run(sys.argv[1:]) if proc.returncode != 0 or os.read(access_fd, 10) == b'': os.close(access_fd) os.remove(access_file) - sys.exit(ret) + sys.exit(proc.returncode) known_actions = ["open", "fopen", "access", "stat", "lstat", "connect"]