mirror of
https://github.com/TalAloni/SMBLibrary.git
synced 2025-04-30 10:47:48 +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)
|
if (!entry.IsDirectory && forceDirectory)
|
||||||
{
|
{
|
||||||
// Not sure if that's the correct response
|
return NTStatus.STATUS_OBJECT_PATH_INVALID;
|
||||||
return NTStatus.STATUS_OBJECT_NAME_COLLISION;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (createDisposition == CreateDisposition.FILE_CREATE)
|
else if (createDisposition == CreateDisposition.FILE_CREATE)
|
||||||
|
|
Loading…
Add table
Reference in a new issue