1.1 --- a/libe2access/lib/src/image.c Thu Oct 27 01:14:32 2022 +0200
1.2 +++ b/libe2access/lib/src/image.c Thu Oct 27 01:22:39 2022 +0200
1.3 @@ -604,7 +604,12 @@
1.4 unlinking by inode could just cause the file to disappear from the
1.5 catalogue. */
1.6
1.7 - return image_unlink_by_name(fs, source_parent, source_basename);
1.8 + retval = image_unlink_by_name(fs, source_parent, source_basename);
1.9 +
1.10 + if (retval)
1.11 + return retval;
1.12 +
1.13 + return ext2fs_flush2(fs, 0);
1.14 }
1.15
1.16 /* Set the mode, user and group metadata for a file. */