]> wimlib.net Git - wimlib/commitdiff
mount_image.c: call file_contents_changed() on extending truncates
authorEric Biggers <ebiggers3@gmail.com>
Sun, 2 Apr 2023 19:32:46 +0000 (12:32 -0700)
committerEric Biggers <ebiggers3@gmail.com>
Sun, 2 Apr 2023 19:32:46 +0000 (12:32 -0700)
src/mount_image.c

index e9922454a37f9e184ac25acca7dbd3607746c01f..38523517de5d6ab19b417c93a09457e8c32332d8 100644 (file)
@@ -820,7 +820,7 @@ extract_blob_to_staging_dir(struct wim_inode *inode,
        prepare_unhashed_blob(new_blob, inode, strm->stream_id,
                              &wim_get_current_image_metadata(ctx->wim)->unhashed_blobs);
        inode_replace_stream_blob(inode, strm, new_blob, ctx->wim->blob_table);
-       if (size < blob_size(old_blob))
+       if (size != blob_size(old_blob))
                file_contents_changed(inode);
        return 0;