summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2012-05-07 15:23:29 +0200
committerJeremy Allison <jra@samba.org>2012-05-25 09:19:38 -0700
commite2818d4a0b87bf9ff8b2dc14698fa14c7e695c23 (patch)
tree6bc0a59283964945393f14c05c5c6a03be5c3868 /source3
parentfdcca54ca302e9b92bdf72823f6a7c9b63886728 (diff)
downloadsamba-e2818d4a0b87bf9ff8b2dc14698fa14c7e695c23.tar.gz
samba-e2818d4a0b87bf9ff8b2dc14698fa14c7e695c23.tar.bz2
samba-e2818d4a0b87bf9ff8b2dc14698fa14c7e695c23.zip
s3: Check for serverid_exists in smb_posix_unlink
Signed-off-by: Jeremy Allison <jra@samba.org> Signed-off-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/trans2.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c
index d4b32ce7ec..af2a21fdf2 100644
--- a/source3/smbd/trans2.c
+++ b/source3/smbd/trans2.c
@@ -7596,6 +7596,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);