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
commit 64f5f9c2f9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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"
}