diff options
author | Volker Lendecke <vl@samba.org> | 2022-05-19 20:43:40 +0200 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2022-05-20 19:02:37 +0000 |
commit | e7a60eb7c93f18af0ce05e16511f3c7b17617273 (patch) | |
tree | 6fd4cc7e0d1fcad6d7a8b403b90b1f2804002e4e /source3/printing | |
parent | 9bacf7529dd74b0307215b3ff00d8de20bf77a57 (diff) | |
download | samba-e7a60eb7c93f18af0ce05e16511f3c7b17617273.tar.gz |
smbd: Simplify copy_file()
The only two callers did not use "count" and "target_is_directory".
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/printing')
-rw-r--r-- | source3/printing/nt_printing.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source3/printing/nt_printing.c b/source3/printing/nt_printing.c index 6961a4ddda9..85517406852 100644 --- a/source3/printing/nt_printing.c +++ b/source3/printing/nt_printing.c @@ -1461,8 +1461,7 @@ static WERROR move_driver_file_to_download_area(TALLOC_CTX *mem_ctx, status = copy_file(mem_ctx, conn, smb_fname_old, smb_fname_new, OPENX_FILE_EXISTS_TRUNCATE | - OPENX_FILE_CREATE_IF_NOT_EXIST, - 0, false); + OPENX_FILE_CREATE_IF_NOT_EXIST); if (!NT_STATUS_IS_OK(status)) { DEBUG(0,("move_driver_file_to_download_area: Unable " |