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

Fixed wildcard file path rules for drive roots #600

Merged
merged 1 commit into from
Feb 15, 2025

Conversation

HotCakeX
Copy link
Owner

Fixed an issue with wildcard file paths that you make for supplemental or deny policies by selecting the root of the drives such as C: or D:

Previously they would look like C:\\* in the policy XML file but now it's fixed by not adding the extra backward slash when drive root is selected.

Fixed the issue with wildcard file paths roots that you make for supplemental or deny policies by selecting the root of the drives such as C: or D:

Previously they would look like "C:\\*" in the policy but now it's fixed by not adding the extra backward slash when drive root is selected
@HotCakeX HotCakeX added the Enhancement 💯 New feature or request label Feb 15, 2025
@HotCakeX HotCakeX self-assigned this Feb 15, 2025
@Copilot Copilot bot review requested due to automatic review settings February 15, 2025 19:40

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 1 out of 1 changed files in this pull request and generated no comments.

Comments suppressed due to low confidence (1)

AppControl Manager/XMLOps/SignerAndHashBuilder.cs:389

  • The variable 'DriveLetters' is an IEnumerable<string?>, which means it can contain null values. Add a null check to avoid potential runtime exceptions.
string wildcardPath = DriveLetters.Any(x => string.Equals(x, item[..^1], System.StringComparison.OrdinalIgnoreCase)) ? item + "*" : item + @"\" + "*";
@HotCakeX HotCakeX merged commit 0f95acc into main Feb 15, 2025
2 checks passed
@HotCakeX HotCakeX deleted the Fixed-wildcard-file-path-rules-for-drive-roots branch February 15, 2025 19:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement 💯 New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant