Minor fix
All checks were successful
Run Unit Tests / build-and-run-unit-tests (push) Successful in 5s

This commit is contained in:
Stephen Seo 2024-10-08 10:39:21 +09:00
parent aa46172aa7
commit bef9c37d72

View file

@ -1538,6 +1538,7 @@ int symlinks_and_files_from_files(void *data, void *ud) {
} }
file_info_struct->uid = stat_buf.st_uid; file_info_struct->uid = stat_buf.st_uid;
file_info_struct->gid = stat_buf.st_gid; file_info_struct->gid = stat_buf.st_gid;
#endif
__attribute__((cleanup(simple_archiver_helper_cleanup_FILE))) FILE *fd = __attribute__((cleanup(simple_archiver_helper_cleanup_FILE))) FILE *fd =
fopen(file_info_struct->filename, "rb"); fopen(file_info_struct->filename, "rb");
if (!fd) { if (!fd) {
@ -1556,7 +1557,6 @@ int symlinks_and_files_from_files(void *data, void *ud) {
file_info_struct->file_size = (uint64_t)ftell_ret; file_info_struct->file_size = (uint64_t)ftell_ret;
simple_archiver_list_add(files_list, file_info_struct, simple_archiver_list_add(files_list, file_info_struct,
free_internal_file_info); free_internal_file_info);
#endif
} }
} }