Set WIM_RESHDR_FLAG_METADATA on XML data
authorEric Biggers <ebiggers3@gmail.com>
Mon, 19 Nov 2012 04:36:20 +0000 (22:36 -0600)
committerEric Biggers <ebiggers3@gmail.com>
Mon, 19 Nov 2012 04:36:20 +0000 (22:36 -0600)
src/write.c

index eed40df89654843f95895b7d13008e2b52a106a4..bc3d93c2a0681a49e9a13ebb9cec34175895b33b 100644 (file)
@@ -1680,10 +1680,10 @@ int finish_write(WIMStruct *w, int image, int write_flags)
                return WIMLIB_ERR_WRITE;
        xml_data_size = integrity_offset - xml_data_offset;
 
-       hdr.xml_res_entry.offset                 = xml_data_offset;
-       hdr.xml_res_entry.size                   = xml_data_size;
-       hdr.xml_res_entry.original_size          = xml_data_size;
-       hdr.xml_res_entry.flags                  = 0;
+       hdr.xml_res_entry.offset        = xml_data_offset;
+       hdr.xml_res_entry.size          = xml_data_size;
+       hdr.xml_res_entry.original_size = xml_data_size;
+       hdr.xml_res_entry.flags         = WIM_RESHDR_FLAG_METADATA;
 
        if (write_flags & WIMLIB_WRITE_FLAG_CHECK_INTEGRITY) {
                ret = write_integrity_table(out, WIM_HEADER_DISK_SIZE,