From 79baa78d491d60ba932b47d1d9c503b8e9b7a4b9 Mon Sep 17 00:00:00 2001 From: Kyle Hickinson Date: Tue, 12 Apr 2022 17:06:52 -0400 Subject: [PATCH] Update regex paths to only match home folder library This changes the regex so that only 1 folder can be detected between `/Users` and `/Library` which should be the users home folder. This fixes a bug where BlockBlock would falsely alert the user that a launch agent or daemon was installed when in reality it existed in a deeper folder structure such as `/Users/test/Downloads/Library/LaunchAgents/com.test.plist` --- Daemon/Daemon/watchList.plist | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Daemon/Daemon/watchList.plist b/Daemon/Daemon/watchList.plist index a3540f0..d30b369 100644 --- a/Daemon/Daemon/watchList.plist +++ b/Daemon/Daemon/watchList.plist @@ -21,7 +21,7 @@ Launch D & A paths - ^(\/System|\/Users\/.+|)\/Library\/(LaunchDaemons|LaunchAgents)\/.+\.(?i)plist$ + ^(\/System|\/Users\/[^\/]+|)\/Library\/(LaunchDaemons|LaunchAgents)\/.+\.(?i)plist$ class Launchd @@ -35,7 +35,7 @@ Login Item paths - ^(\/Users\/.+|)\/Library\/Application Support\/com.apple.backgroundtaskmanagementagent\/backgrounditems.btm$ + ^(\/Users\/[^\/]+|)\/Library\/Application Support\/com.apple.backgroundtaskmanagementagent\/backgrounditems.btm$ class LoginItem