win_acl: fix recent bug and add basic tests (#43054)

This commit is contained in:
Jordan Borean
2018-07-23 05:16:42 +10:00
committed by GitHub
parent 35f6bbf18b
commit 64f5f9c2f9
5 changed files with 185 additions and 1 deletions

View File

@@ -182,7 +182,7 @@ if (!$sid) {
If (Test-Path -Path $path -PathType Leaf) {
$inherit = "None"
}
ElseIf ($inherit -eq "") {
ElseIf ($null -eq $inherit) {
$inherit = "ContainerInherit, ObjectInherit"
}