diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-06-11 00:45:19 +0200 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-06-11 00:45:19 +0200 |
commit | a31acfdbf87a7ff6671890de9df17f9552a4f8c0 (patch) | |
tree | 869cc5757ae4f238c29660d9c882b11c2025b671 | |
parent | 2045b62cb6fb76fd5cee6fa068d2176ba31ae9e7 (diff) |
fix: flush the last, unfinished fragment block as well
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
-rw-r--r-- | mkfs/block.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mkfs/block.c b/mkfs/block.c index de2c962..fadf9b9 100644 --- a/mkfs/block.c +++ b/mkfs/block.c @@ -255,6 +255,8 @@ int write_data_to_image(sqfs_info_t *info) ret = find_and_process_files(info, info->fs.root, info->opt.quiet); + ret = ret == 0 ? flush_fragments(info) : ret; + free(info->block); free(info->fragment); free(info->scratch); |