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
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
This should fix https://github.com/objective-see/BlockBlock/issues/38
If the described behaviour is not the goal of BlockBlock please feel free to close this PR. Thanks!