s3: Check for serverid_exists in close_remove_share_mode
authorVolker Lendecke <vl@samba.org>
Mon, 7 May 2012 13:23:29 +0000 (15:23 +0200)
committerJeremy Allison <jra@samba.org>
Fri, 25 May 2012 16:19:38 +0000 (09:19 -0700)
Signed-off-by: Jeremy Allison <jra@samba.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
source3/smbd/close.c

index 354a68c546c6a006fc549fde0db691b741343b27..e91e2199a80f44355b6725744575829f07340edc 100644 (file)
@@ -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;
                        }