Explorar el Código

Minor fixes

tags/4.2.4
Raimund Andée hace 8 años
padre
commit
53483e593a
Se han modificado 2 ficheros con 2 adiciones y 1 borrados
  1. +1
    -0
      Security2/Enums.cs
  2. +1
    -1
      Security2/FileSystem/FileSystemAccessRule2 Class/FileSystemAccessRule2.GetFileSystemAccessRules.cs

+ 1
- 0
Security2/Enums.cs Ver fichero

@@ -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 Ver fichero

@@ -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++;


Cargando…
Cancelar
Guardar