mirror of
https://github.com/TalAloni/SMBLibrary.git
synced 2025-08-16 04:03:47 +02:00
NTFileSystemHelper: Rename will now return STATUS_OBJECT_NAME_COLLISION if the destination exists
This commit is contained in:
parent
7e6ad281b1
commit
353460a976
1 changed files with 2 additions and 1 deletions
|
@ -384,7 +384,8 @@ namespace SMBLibrary.Server
|
||||||
}
|
}
|
||||||
else if (errorCode == (ushort)Win32Error.ERROR_ALREADY_EXISTS)
|
else if (errorCode == (ushort)Win32Error.ERROR_ALREADY_EXISTS)
|
||||||
{
|
{
|
||||||
return NTStatus.STATUS_OBJECT_NAME_EXISTS;
|
// According to [MS-FSCC], FileRenameInformation MUST return STATUS_OBJECT_NAME_COLLISION when the specified name already exists and ReplaceIfExists is zero.
|
||||||
|
return NTStatus.STATUS_OBJECT_NAME_COLLISION;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue