From 2b981c769a3e3a4b7d3ec07ec4309eb971d7e535 Mon Sep 17 00:00:00 2001 From: Tal Aloni Date: Tue, 3 Jan 2017 23:11:04 +0200 Subject: [PATCH] Report STATUS_SHARING_VIOLATION instead of STATUS_FILE_LOCK_CONFLICT on IOException when deleting file --- .../Server/ResponseHelpers/Transaction2SubcommandHelper.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SMBLibrary/Server/ResponseHelpers/Transaction2SubcommandHelper.cs b/SMBLibrary/Server/ResponseHelpers/Transaction2SubcommandHelper.cs index a7e6379..34baba5 100644 --- a/SMBLibrary/Server/ResponseHelpers/Transaction2SubcommandHelper.cs +++ b/SMBLibrary/Server/ResponseHelpers/Transaction2SubcommandHelper.cs @@ -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)