diff options
author | Volker Lendecke <vl@samba.org> | 2012-05-07 15:23:10 +0200 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2012-05-17 13:17:21 -0700 |
commit | 4962ab2aa870d0de2f3488b4bd3cf14d7c987c9a (patch) | |
tree | 974a23a56a821d8a32bed3666c3d679d7c451ad6 | |
parent | 689a04bc6c21d35cf2b3e025cb9ff3aab3fcfc23 (diff) | |
download | samba-4962ab2aa870d0de2f3488b4bd3cf14d7c987c9a.tar.gz samba-4962ab2aa870d0de2f3488b4bd3cf14d7c987c9a.tar.bz2 samba-4962ab2aa870d0de2f3488b4bd3cf14d7c987c9a.zip |
s3: Check for serverid_exists in open_mode_check
Signed-off-by: Jeremy Allison <jra@samba.org>
-rw-r--r-- | source3/smbd/open.c | 5 |
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; } } |