summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2012-05-07 15:23:29 +0200
committerJeremy Allison <jra@samba.org>2012-05-17 13:17:22 -0700
commit182faceab21000f3103f030b31cab5baba6deb6c (patch)
tree101a89512a271ac152766b8625900dadb1fe7371 /source3
parent2db3ecbc954a8e56d9c83aacd5967817cbcb2394 (diff)
downloadsamba-182faceab21000f3103f030b31cab5baba6deb6c.tar.gz
samba-182faceab21000f3103f030b31cab5baba6deb6c.tar.bz2
samba-182faceab21000f3103f030b31cab5baba6deb6c.zip
s3: Check for serverid_exists in close_directory
Signed-off-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/close.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/smbd/close.c b/source3/smbd/close.c
index 8e82db39b5..e46e1aec89 100644
--- a/source3/smbd/close.c
+++ b/source3/smbd/close.c
@@ -1078,6 +1078,9 @@ static NTSTATUS close_directory(struct smb_request *req, files_struct *fsp,
if (fsp->posix_open && (e->flags & SHARE_MODE_FLAG_POSIX_OPEN)) {
continue;
}
+ if (share_mode_stale_pid(lck->data, i)) {
+ continue;
+ }
delete_dir = False;
break;
}