From: Ján Tomko <[email protected]>

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 <[email protected]>
---
Pushed as a build fix.

 scripts/check-file-access.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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"]
 
-- 
2.51.1

Reply via email to