From 065b73daab2b69d17f31b14be5bbf9a64f0184df Mon Sep 17 00:00:00 2001 From: Mykola Grymalyuk Date: Fri, 10 May 2024 14:07:15 -0600 Subject: [PATCH] sys_patch_auto.py: Enforce full pathing for subprocess --- opencore_legacy_patcher/sys_patch/sys_patch_auto.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/opencore_legacy_patcher/sys_patch/sys_patch_auto.py b/opencore_legacy_patcher/sys_patch/sys_patch_auto.py index dd703e7c5..ff263afd3 100644 --- a/opencore_legacy_patcher/sys_patch/sys_patch_auto.py +++ b/opencore_legacy_patcher/sys_patch/sys_patch_auto.py @@ -371,8 +371,8 @@ Please check the Github page for more information about this release.""" utilities.process_status(utilities.elevated(["/bin/cp", service, services[service]], stdout=subprocess.PIPE, stderr=subprocess.STDOUT)) # Set the permissions on the service - utilities.process_status(utilities.elevated(["chmod", "644", services[service]], stdout=subprocess.PIPE, stderr=subprocess.STDOUT)) - utilities.process_status(utilities.elevated(["chown", "root:wheel", services[service]], stdout=subprocess.PIPE, stderr=subprocess.STDOUT)) + utilities.process_status(utilities.elevated(["/bin/chmod", "644", services[service]], stdout=subprocess.PIPE, stderr=subprocess.STDOUT)) + utilities.process_status(utilities.elevated(["/usr/sbin/chown", "root:wheel", services[service]], stdout=subprocess.PIPE, stderr=subprocess.STDOUT)) if self.constants.launcher_binary.startswith("/Library/Application Support/Dortania/"): logging.info("- Skipping Patcher Install, already installed")