Fix a missing argument 77/310177/3 accepted/tizen/unified/20240424.162647 accepted/tizen/unified/x/20240425.051120
authorMateusz Moscicki <m.moscicki2@partner.samsung.com>
Tue, 23 Apr 2024 12:17:41 +0000 (14:17 +0200)
committerChanwoo Choi <cw00.choi@samsung.com>
Wed, 24 Apr 2024 01:49:59 +0000 (10:49 +0900)
Change-Id: Ib343925388826c79e60a7e9d60b7f2b62e8aceeb

src/upgrade-apply-deltafs/engine/SS_PatchDelta.c
src/upgrade-apply/patch/patch_helper.h

index cf88b6e..c4b7959 100644 (file)
@@ -19,6 +19,7 @@
 #include <errno.h>
 #include <libgen.h>
 #include <stdio.h>
+#include <stdbool.h>
 #include <stdlib.h>
 #include <string.h>
 #include <assert.h>
@@ -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);
index 03670f9..4d147f7 100644 (file)
@@ -17,6 +17,7 @@
  */
 
 #pragma once
+#include <stdbool.h>
 #include <libtar.h>
 
-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);