get the error code right in case of a blocking lock timeout.
authorAndrew Tridgell <tridge@samba.org>
Sat, 17 Aug 2002 23:57:48 +0000 (23:57 +0000)
committerAndrew Tridgell <tridge@samba.org>
Sat, 17 Aug 2002 23:57:48 +0000 (23:57 +0000)
(This used to be commit 01d35694ae0497ee11a7677eecc597336e6b59ca)

source3/smbd/blocking.c

index cb69b60144ce18fa2f3af81be953f13521236c2e..72cf3e59b6bf4b7b007ae17b59b1431340cc517f 100644 (file)
@@ -584,7 +584,7 @@ void process_blocking_lock_queue(time_t t)
       DEBUG(5,("process_blocking_lock_queue: pending lock fnum = %d for file %s timed out.\n",
           fsp->fnum, fsp->fsp_name ));
 
-      blocking_lock_reply_error(blr,NT_STATUS_ACCESS_DENIED);
+      blocking_lock_reply_error(blr,NT_STATUS_FILE_LOCK_CONFLICT);
       free_blocking_lock_record((blocking_lock_record *)ubi_slRemNext( &blocking_lock_queue, prev));
       blr = (blocking_lock_record *)(prev ? ubi_slNext(prev) : ubi_slFirst(&blocking_lock_queue));
       continue;