From c456274446fe1e8c74bfd2fc2227861427297637 Mon Sep 17 00:00:00 2001 From: Mykola Grymalyuk Date: Fri, 10 May 2024 14:04:51 -0600 Subject: [PATCH] kdk_handler.py: Enforce full pathing for subprocess --- opencore_legacy_patcher/support/kdk_handler.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/opencore_legacy_patcher/support/kdk_handler.py b/opencore_legacy_patcher/support/kdk_handler.py index d99897b47..abbb7a36f 100644 --- a/opencore_legacy_patcher/support/kdk_handler.py +++ b/opencore_legacy_patcher/support/kdk_handler.py @@ -588,14 +588,13 @@ class KernelDebugKitUtilities: # TODO: Check whether enough disk space is available - result = utilities.elevated(["installer", "-pkg", kdk_path, "-target", "/"], stdout=subprocess.PIPE, stderr=subprocess.STDOUT) + result = utilities.elevated(["/usr/sbin/installer", "-pkg", kdk_path, "-target", "/"], stdout=subprocess.PIPE, stderr=subprocess.STDOUT) if result.returncode != 0: logging.info("Failed to install KDK:") logging.info(result.stdout.decode('utf-8')) if result.stderr: logging.info(result.stderr.decode('utf-8')) return False - return True