瀏覽代碼

Minor fixes

tags/4.2.4
Raimund Andée 8 年之前
父節點
當前提交
53483e593a
共有 2 個文件被更改,包括 2 次插入1 次删除
  1. +1
    -0
      Security2/Enums.cs
  2. +1
    -1
      Security2/FileSystem/FileSystemAccessRule2 Class/FileSystemAccessRule2.GetFileSystemAccessRules.cs

+ 1
- 0
Security2/Enums.cs 查看文件

@@ -28,6 +28,7 @@ namespace Security2
None = 0,
ListDirectory = 1,
ReadData = 1,
WriteData = 2,
CreateFiles = 2,
CreateDirectories = 4,
AppendData = 4,


+ 1
- 1
Security2/FileSystem/FileSystemAccessRule2 Class/FileSystemAccessRule2.GetFileSystemAccessRules.cs 查看文件

@@ -32,7 +32,7 @@ namespace Security2
foreach (FileSystemAccessRule ace in acl)
{
var ace2 = new FileSystemAccessRule2(ace) { FullName = sd.Item.FullName, InheritanceEnabled = !sd.SecurityDescriptor.AreAccessRulesProtected };
if (getInheritedFrom)
if (getInheritedFrom && inheritedFrom.Count > 0)
{
ace2.inheritedFrom = string.IsNullOrEmpty(inheritedFrom[aceCounter]) ? "" : inheritedFrom[aceCounter].Substring(0, inheritedFrom[aceCounter].Length - 1);
aceCounter++;


Loading…
取消
儲存