}
u32 = stat_buf.st_uid;
+ if (state->parsed->flags & 0x400) {
+ u32 = state->parsed->uid;
+ }
simple_archiver_helper_32_bit_be(&u32);
if (fwrite(&u32, 4, 1, out_f) != 1) {
return SDAS_FAILED_TO_WRITE;
}
u32 = stat_buf.st_gid;
+ if (state->parsed->flags & 0x800) {
+ u32 = state->parsed->gid;
+ }
simple_archiver_helper_32_bit_be(&u32);
if (fwrite(&u32, 4, 1, out_f) != 1) {
return SDAS_FAILED_TO_WRITE;
}
u32 = stat_buf.st_uid;
+ if (state->parsed->flags & 0x400) {
+ u32 = state->parsed->uid;
+ }
char *username = simple_archiver_hash_map_get(
state->parsed->users_infos.UidToUname,
&u32,
}
u32 = stat_buf.st_gid;
+ if (state->parsed->flags & 0x800) {
+ u32 = state->parsed->gid;
+ }
char *groupname = simple_archiver_hash_map_get(
state->parsed->users_infos.GidToGname,
&u32,