From e2818d4a0b87bf9ff8b2dc14698fa14c7e695c23 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Mon, 7 May 2012 15:23:29 +0200 Subject: s3: Check for serverid_exists in smb_posix_unlink Signed-off-by: Jeremy Allison Signed-off-by: Stefan Metzmacher --- source3/smbd/trans2.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source3/smbd') 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); -- cgit