diff options
-rw-r--r-- | source3/smbd/close.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/smbd/close.c b/source3/smbd/close.c index 1bac2a1cdf..8e82db39b5 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; } |