]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: Check for serverid_exists in smb_posix_unlink
authorVolker Lendecke <vl@samba.org>
Mon, 7 May 2012 13:23:29 +0000 (15:23 +0200)
committerJeremy 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/trans2.c

index 590ee5bf7cea296165150ba742d37a320f10ac12..936b39a2c2af9e08a79d4712b5517fd9564a922f 100644 (file)
@@ -7595,6 +7595,9 @@ static NTSTATUS smb_posix_unlink(connection_struct *conn,
                        if (e->flags & SHARE_MODE_FLAG_POSIX_OPEN) {
                                continue;
                        }
+                       if (share_mode_stale_pid(lck->data, i)) {
+                               continue;
+                       }
                        /* Fail with sharing violation. */
                        close_file(req, fsp, NORMAL_CLOSE);
                        TALLOC_FREE(lck);