+ /*
+ * Insert an extended header for size=<arcn->sb.st_size> since
+ * octal range of 12 byte string cannot fit > 8GiB files in header.
+ * This fixes Conformance test pax.343
+ */
+ int i;
+ snprintf(size_value, sizeof(size_value), "%lld", arcn->sb.st_size);
+ for (i = 0; i < sizeof(o_option_table)/sizeof(O_OPTION_TYPE); i++) {
+ if (strncasecmp(size_header_name, o_option_table[i].name, o_option_table[i].len) == 0) {
+ size_x = size_value;
+ ext_header_entry[ext_header_inx++] = i;
+ }
+ }
+ generate_pax_ext_header_and_data(arcn, ext_header_inx, &ext_header_entry[0],
+ PAXXTYPE, header_name_x, header_name_x_requested);