summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2012-05-07 15:23:10 +0200
committerJeremy Allison <jra@samba.org>2012-05-25 09:19:37 -0700
commitfdcca54ca302e9b92bdf72823f6a7c9b63886728 (patch)
tree7c9b49b3667bbf31bd49fd2244d1b1ba00988697 /source3/smbd
parent19b6671c07be2419398a07f202e22abefe562176 (diff)
downloadsamba-fdcca54ca302e9b92bdf72823f6a7c9b63886728.tar.gz
samba-fdcca54ca302e9b92bdf72823f6a7c9b63886728.tar.bz2
samba-fdcca54ca302e9b92bdf72823f6a7c9b63886728.zip
s3: Check for serverid_exists in open_mode_check
Signed-off-by: Jeremy Allison <jra@samba.org> Signed-off-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/open.c5
1 files changed, 5 insertions, 0 deletions
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;
}
}