smbd: Simplify copy_file()
[samba.git] / source3 / printing / nt_printing.c
index 6961a4ddda970a849dbccfb09f20547e84d82b99..85517406852ee55c4602160636600cad52075bdf 100644 (file)
@@ -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 "