smbd: Simplify copy_file()
authorVolker Lendecke <vl@samba.org>
Fri, 20 May 2022 06:06:28 +0000 (08:06 +0200)
committerJeremy Allison <jra@samba.org>
Fri, 20 May 2022 19:02:37 +0000 (19:02 +0000)
commita771f1d314bc41b59a279b1859ed28714bed3040
tree9c96a4c21c1150e42dd4c8ba326c6ffa5282efc7
parente7a60eb7c93f18af0ce05e16511f3c7b17617273
smbd: Simplify copy_file()

Pass in new_create_disposition directly. We can also remove the
if-case (ofun & OPENX_FILE_EXISTS_OPEN) in copy_file, the two callers
don't use it.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/modules/vfs_fruit.c
source3/printing/nt_printing.c
source3/smbd/proto.h
source3/smbd/smb2_reply.c