git.samba.org
/
kai
/
samba.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
s3: Check for serverid_exists in close_remove_share_mode
[kai/samba.git]
/
source3
/
smbd
/
close.c
diff --git
a/source3/smbd/close.c
b/source3/smbd/close.c
index 354a68c546c6a006fc549fde0db691b741343b27..e91e2199a80f44355b6725744575829f07340edc 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;
}