diff options
author | Volker Lendecke <vl@samba.org> | 2012-05-07 15:23:29 +0200 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2012-05-17 13:17:22 -0700 |
commit | 5017bbe70d2e40e1942224291789793330a31605 (patch) | |
tree | a40355c3b2257a58f7812d06cbe504a40d3f6981 /source3 | |
parent | 4962ab2aa870d0de2f3488b4bd3cf14d7c987c9a (diff) | |
download | samba-5017bbe70d2e40e1942224291789793330a31605.tar.gz samba-5017bbe70d2e40e1942224291789793330a31605.tar.bz2 samba-5017bbe70d2e40e1942224291789793330a31605.zip |
s3: Check for serverid_exists in smb_posix_unlink
Signed-off-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3')
-rw-r--r-- | source3/smbd/trans2.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c index 590ee5bf7c..936b39a2c2 100644 --- a/source3/smbd/trans2.c +++ b/source3/smbd/trans2.c @@ -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); |