From 3caf9addd29f0cc4cd15086cc7f288fa80522e2a Mon Sep 17 00:00:00 2001 From: Jacob Prezant <179630496+jacobprezant@users.noreply.github.com> Date: Fri, 2 Jan 2026 15:54:37 -0500 Subject: [PATCH] fix: app path validation logic in uninstallAppByPath --- RootHelper/main.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RootHelper/main.m b/RootHelper/main.m index 9160b78..44e65a6 100644 --- a/RootHelper/main.m +++ b/RootHelper/main.m @@ -1169,7 +1169,7 @@ int uninstallAppByPath(NSString* appPath, BOOL useCustomMethod) NSString* standardizedAppPath = appPath.stringByStandardizingPath; - if(![standardizedAppPath hasPrefix:@"/var/containers/Bundle/Application/"] && standardizedAppPath.pathComponents.count == 5) + if(![standardizedAppPath hasPrefix:@"/var/containers/Bundle/Application/"] || standardizedAppPath.pathComponents.count < 5) { return 1; }