git.samba.org
/
ddiss
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4329609
)
s3: Check for serverid_exists in close_remove_share_mode
author
Volker Lendecke
<vl@samba.org>
Mon, 7 May 2012 13:23:29 +0000
(15:23 +0200)
committer
Jeremy Allison
<jra@samba.org>
Thu, 17 May 2012 20:17:22 +0000
(13:17 -0700)
Signed-off-by: Jeremy Allison <jra@samba.org>
source3/smbd/close.c
patch
|
blob
|
history
diff --git
a/source3/smbd/close.c
b/source3/smbd/close.c
index 1bac2a1cdfcfc90334a2d51c16852adb9c0dcc0e..8e82db39b52824bcbdcc48a6820e618f522eb0eb 100644
(file)
--- 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;
}