From 4962ab2aa870d0de2f3488b4bd3cf14d7c987c9a Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Mon, 7 May 2012 15:23:10 +0200 Subject: s3: Check for serverid_exists in open_mode_check Signed-off-by: Jeremy Allison --- source3/smbd/open.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source3/smbd') diff --git a/source3/smbd/open.c b/source3/smbd/open.c index 543a6619e9..8a5273ef14 100644 --- a/source3/smbd/open.c +++ b/source3/smbd/open.c @@ -1024,6 +1024,11 @@ static NTSTATUS open_mode_check(connection_struct *conn, * too */ if (share_conflict(&lck->data->share_modes[i], access_mask, share_access)) { + + if (share_mode_stale_pid(lck->data, i)) { + continue; + } + return NT_STATUS_SHARING_VIOLATION; } } -- cgit