From: Mateusz Moscicki Date: Tue, 23 Apr 2024 12:17:41 +0000 (+0200) Subject: Fix a missing argument X-Git-Tag: accepted/tizen/unified/20240424.162647^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2ccba0d353d2c6da44be0c8a003134debce34ab5;p=platform%2Fcore%2Fsystem%2Fupgrade.git Fix a missing argument Change-Id: Ib343925388826c79e60a7e9d60b7f2b62e8aceeb --- diff --git a/src/upgrade-apply-deltafs/engine/SS_PatchDelta.c b/src/upgrade-apply-deltafs/engine/SS_PatchDelta.c index cf88b6e..c4b7959 100644 --- a/src/upgrade-apply-deltafs/engine/SS_PatchDelta.c +++ b/src/upgrade-apply-deltafs/engine/SS_PatchDelta.c @@ -19,6 +19,7 @@ #include #include #include +#include #include #include #include @@ -252,7 +253,7 @@ int SS_UpdateDeltaFS(const char *source_filename, const char *target_filename, } } } - result = apply_patch_brotli((char *)source_filename, outname, tar_file, -1, &free_space); + result = apply_patch_brotli((char *)source_filename, outname, tar_file, -1, &free_space, true); if (output >= 0) { fsync(output); close(output); diff --git a/src/upgrade-apply/patch/patch_helper.h b/src/upgrade-apply/patch/patch_helper.h index 03670f9..4d147f7 100644 --- a/src/upgrade-apply/patch/patch_helper.h +++ b/src/upgrade-apply/patch/patch_helper.h @@ -17,6 +17,7 @@ */ #pragma once +#include #include -int apply_patch_brotli(const char *source_file, const char *dest_file, TAR *patch_tar, size_t dest_size, size_t *free_space); +int apply_patch_brotli(const char *source_file, const char *dest_file, TAR *patch_tar, size_t dest_size, size_t *free_space, bool write_all);