mirror of
				https://github.com/winfsp/winfsp.git
				synced 2025-10-29 19:18:39 -05:00 
			
		
		
		
	dll: FspAccessCheck
This commit is contained in:
		| @@ -120,6 +120,15 @@ FSP_API NTSTATUS FspAccessCheck(FSP_FILE_SYSTEM *FileSystem, | |||||||
|         if (0 == (FileAttributes && FILE_ATTRIBUTE_DIRECTORY)) |         if (0 == (FileAttributes && FILE_ATTRIBUTE_DIRECTORY)) | ||||||
|             return STATUS_NOT_A_DIRECTORY; |             return STATUS_NOT_A_DIRECTORY; | ||||||
|     } |     } | ||||||
|  |     else | ||||||
|  |     { | ||||||
|  |         if ((Request->Req.Create.CreateOptions & FILE_DIRECTORY_FILE) && | ||||||
|  |             0 == (FileAttributes && FILE_ATTRIBUTE_DIRECTORY)) | ||||||
|  |             return STATUS_NOT_A_DIRECTORY; | ||||||
|  |         if ((Request->Req.Create.CreateOptions & FILE_NON_DIRECTORY_FILE) && | ||||||
|  |             0 != (FileAttributes && FILE_ATTRIBUTE_DIRECTORY)) | ||||||
|  |             return STATUS_NOT_A_DIRECTORY; | ||||||
|  |     } | ||||||
|  |  | ||||||
|     if (0 != (FileAttributes && FILE_ATTRIBUTE_READONLY)) |     if (0 != (FileAttributes && FILE_ATTRIBUTE_READONLY)) | ||||||
|     { |     { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user