Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update regex paths to only match home folder library #39

Merged
merged 1 commit into from
Apr 17, 2022
Merged

Update regex paths to only match home folder library #39

merged 1 commit into from
Apr 17, 2022

Conversation

kylehickinson
Copy link
Contributor

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 #38

If the described behaviour is not the goal of BlockBlock please feel free to close this PR. Thanks!

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`
@objective-see objective-see merged commit 1c94286 into objective-see:master Apr 17, 2022
@objective-see
Copy link
Owner

Thanks @kylehickinson for debugging the issue, and providing a fix! 🙏🏽

objective-see added a commit that referenced this pull request Apr 17, 2022
fix for #39
@kylehickinson kylehickinson deleted the deep-path-false-alerts branch April 19, 2022 18:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Hundreds of alerts when unzipping Xcode
2 participants