From fdcca54ca302e9b92bdf72823f6a7c9b63886728 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 Signed-off-by: Stefan Metzmacher --- 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