]> git.ipfire.org Git - thirdparty/samba.git/commit
smbd: Remove a late ref to "file_existed" in open_file_ntcreate()
authorVolker Lendecke <vl@samba.org>
Fri, 2 Aug 2019 13:21:49 +0000 (15:21 +0200)
committerJeremy Allison <jra@samba.org>
Mon, 19 Aug 2019 23:14:39 +0000 (23:14 +0000)
commit3bd7b119e6882aee04badc92f2ddbcbc1964c115
tree83fcb00b83567fc71d785084cca5acd2e873cf2c
parentf8fe0116c1158d8fdf0401ca46e8f12b84c04738
smbd: Remove a late ref to "file_existed" in open_file_ntcreate()

If you follow "existing_dos_attributes" through the routine, this can
only ever be !=0 if SMB_VFS_GET_DOS_ATTRIBUTES() was successful. This
can only have been successful if the file existed.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/open.c