diff options
author | Volker Lendecke <vl@samba.org> | 2019-08-02 15:24:16 +0200 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2019-08-19 23:14:39 +0000 |
commit | 3ecfa36e777cf377a4ae06644b0880fef4867452 (patch) | |
tree | cd1fbf8e8b3f77b70dbe9e0cfaa5878446995df3 | |
parent | 3bd7b119e6882aee04badc92f2ddbcbc1964c115 (diff) | |
download | samba-3ecfa36e777cf377a4ae06644b0880fef4867452.tar.gz |
smbd: Slightly simplify open_file_ntcreate()
There is no reference to "file_existed" after this point anymore
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
-rw-r--r-- | source3/smbd/open.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/source3/smbd/open.c b/source3/smbd/open.c index 77dd33b8378..ea5be99bd31 100644 --- a/source3/smbd/open.c +++ b/source3/smbd/open.c @@ -3489,18 +3489,6 @@ static NTSTATUS open_file_ntcreate(connection_struct *conn, status = open_mode_check(conn, lck, access_mask, share_access); - if (NT_STATUS_EQUAL(status, NT_STATUS_SHARING_VIOLATION) || - (lck->data->num_share_modes > 0)) { - /* - * This comes from ancient times out of open_mode_check. I - * have no clue whether this is still necessary. I can't think - * of a case where this would actually matter further down in - * this function. I leave it here for further investigation - * :-) - */ - file_existed = true; - } - if (req != NULL) { /* * Handle oplocks, deferring the request if delay_for_oplock() |