From d7dc5d289377e737c7adf4a3b4804f3e8a1fcc06 Mon Sep 17 00:00:00 2001 From: midipix Date: Tue, 6 Feb 2024 21:26:35 +0000 Subject: slbt_ar_output_members(): file size: exclude the bsd long-name trailer. --- src/arbits/output/slbt_ar_output_members.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/arbits/output/slbt_ar_output_members.c b/src/arbits/output/slbt_ar_output_members.c index 43652a7..bb6686b 100644 --- a/src/arbits/output/slbt_ar_output_members.c +++ b/src/arbits/output/slbt_ar_output_members.c @@ -81,7 +81,7 @@ static int slbt_ar_output_one_member_posix_verbose( slbt_ar_perm_strs[worldbits], memberp->ar_file_header.ar_uid, memberp->ar_file_header.ar_gid, - memberp->ar_file_header.ar_file_size, + memberp->ar_object_size, artimestr, memberp->ar_file_header.ar_member_name); } @@ -105,7 +105,7 @@ static int slbt_ar_output_members_posix( if (dctx->cctx->fmtflags & SLBT_PRETTY_VERBOSE) { for (sizelen=0,memberp=meta->a_memberv; *memberp; memberp++) - if ((testval = memberp[0]->ar_file_header.ar_file_size) > sizelen) + if ((testval = memberp[0]->ar_object_size) > sizelen) sizelen = testval; for (uidlen=0,memberp=meta->a_memberv; *memberp; memberp++) @@ -198,7 +198,7 @@ static int slbt_ar_output_one_member_yaml_verbose( " - [ mode: " "%d" " ]\n\n", memberp->ar_file_header.ar_member_name, artimestr, - memberp->ar_file_header.ar_file_size, + memberp->ar_object_size, memberp->ar_file_header.ar_uid, memberp->ar_file_header.ar_gid, memberp->ar_file_header.ar_file_mode); -- cgit v1.2.3