mirror of
https://github.com/TalAloni/SMBLibrary.git
synced 2025-07-21 16:55:54 +02:00
Report STATUS_SHARING_VIOLATION instead of STATUS_FILE_LOCK_CONFLICT on IOException when deleting file
This commit is contained in:
parent
a9ebf67c16
commit
2b981c769a
1 changed files with 1 additions and 1 deletions
|
@ -384,7 +384,7 @@ namespace SMBLibrary.Server
|
|||
catch (IOException)
|
||||
{
|
||||
System.Diagnostics.Debug.Print("[{0}] NTCreate: Error deleting '{1}'", DateTime.Now.ToString("HH:mm:ss:ffff"), openedFilePath);
|
||||
header.Status = NTStatus.STATUS_FILE_LOCK_CONFLICT;
|
||||
header.Status = NTStatus.STATUS_SHARING_VIOLATION;
|
||||
return null;
|
||||
}
|
||||
catch (UnauthorizedAccessException)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue