mirror of
				https://github.com/winfsp/winfsp.git
				synced 2025-10-30 19:48:38 -05:00 
			
		
		
		
	tst: dotnet: SetSecurity testing
This commit is contained in:
		| @@ -772,12 +772,8 @@ namespace memfs | ||||
|             if (null != FileNode.MainFileNode) | ||||
|                 FileNode = FileNode.MainFileNode; | ||||
|  | ||||
|             ObjectSecurity ObjectSecurity = | ||||
|                 0 != (FileNode.FileInfo.FileAttributes & (UInt32)FileAttributes.Directory) ? | ||||
|                     (ObjectSecurity)new DirectorySecurity() : (ObjectSecurity)new FileSecurity(); | ||||
|             ObjectSecurity.SetSecurityDescriptorBinaryForm(FileNode.FileSecurity); | ||||
|             ObjectSecurity.SetSecurityDescriptorBinaryForm(SecurityDescriptor, Sections); | ||||
|             FileNode.FileSecurity = ObjectSecurity.GetSecurityDescriptorBinaryForm(); | ||||
|             FileNode.FileSecurity = ModifySecurityDescriptor( | ||||
|                 FileNode.FileSecurity, Sections, SecurityDescriptor); | ||||
|  | ||||
|             return STATUS_SUCCESS; | ||||
|         } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user