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
commitbdc4404ef950e3cb4d026dd49a247b5ab8ecdbd4 (patch)
treed0e8702782bb7d1bb29ff894031fd899b1891f04 /source3/smbd
parentbc3b7d76a8ea1b96668163af9379ba4be3771466 (diff)
downloadsamba-bdc4404ef950e3cb4d026dd49a247b5ab8ecdbd4.tar.gz
samba-bdc4404ef950e3cb4d026dd49a247b5ab8ecdbd4.tar.bz2
samba-bdc4404ef950e3cb4d026dd49a247b5ab8ecdbd4.zip
s3: Check for serverid_exists in close_remove_share_mode
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 354a68c546..e91e2199a8 100644
--- a/source3/smbd/close.c
+++ b/source3/smbd/close.c
@@ -425,6 +425,9 @@ static NTSTATUS close_remove_share_mode(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_file = False;
break;
}