mirror of
https://github.com/TalAloni/SMBLibrary.git
synced 2025-04-30 02:37:49 +02:00
NTFileSystemHelper: Return STATUS_OBJECT_PATH_INVALID when FILE_DIRECTORY_FILE is specified and a path component is not a directory
This commit is contained in:
parent
a23d2d86f9
commit
7c107344a2
1 changed files with 2 additions and 3 deletions
|
@ -74,8 +74,7 @@ namespace SMBLibrary.Server
|
|||
|
||||
if (!entry.IsDirectory && forceDirectory)
|
||||
{
|
||||
// Not sure if that's the correct response
|
||||
return NTStatus.STATUS_OBJECT_NAME_COLLISION;
|
||||
return NTStatus.STATUS_OBJECT_PATH_INVALID;
|
||||
}
|
||||
}
|
||||
else if (createDisposition == CreateDisposition.FILE_CREATE)
|
||||
|
|
Loading…
Add table
Reference in a new issue