summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2012-05-07 15:23:29 +0200
committerJeremy Allison <jra@samba.org>2012-05-25 09:19:38 -0700
commit89cf7ea944b8947d5b64b5e2819936ea8af1e661 (patch)
tree776d42093ede63ce69303c483544a4bde2363349 /source3/smbd
parentbdc4404ef950e3cb4d026dd49a247b5ab8ecdbd4 (diff)
downloadsamba-89cf7ea944b8947d5b64b5e2819936ea8af1e661.tar.gz
samba-89cf7ea944b8947d5b64b5e2819936ea8af1e661.tar.bz2
samba-89cf7ea944b8947d5b64b5e2819936ea8af1e661.zip
s3: Check for serverid_exists in close_directory
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/close.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/smbd/close.c b/source3/smbd/close.c
index e91e2199a8..4b7f694510 100644
--- a/source3/smbd/close.c
+++ b/source3/smbd/close.c
@@ -1090,6 +1090,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;
}