mirror of https://github.com/raandree/NTFSSecurity
Browse Source
Since this branch, Test-Path2 writes $false for a path that Windows PowerShell rejects, such as one with a |, but it didn't say why. It now writes the reason as a debug message. Only the lookup of the item is in the try block, so that an error elsewhere in the cmdlet can't turn into $false. Found by the security review of fcb370e..00c3646 (finding 4). Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Co-authored-by: AI Assistant <ai@example.com>ai/release-5.0.0-rc6
5 changed files with 47 additions and 21 deletions
Loading…
Reference in new issue