summaryrefslogtreecommitdiff
path: root/src/arbits/output
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2024-02-06 21:26:35 +0000
committermidipix <writeonce@midipix.org>2024-02-07 03:50:50 +0000
commitd7dc5d289377e737c7adf4a3b4804f3e8a1fcc06 (patch)
tree60e045df75ee813e6e0f022a64fec7cd1206c0d7 /src/arbits/output
parent4223c83c4bb6ea3aeee68f1810ca86a8fb785f86 (diff)
downloadslibtool-d7dc5d289377e737c7adf4a3b4804f3e8a1fcc06.tar.bz2
slibtool-d7dc5d289377e737c7adf4a3b4804f3e8a1fcc06.tar.xz
slbt_ar_output_members(): file size: exclude the bsd long-name trailer.
Diffstat (limited to 'src/arbits/output')
-rw-r--r--src/arbits/output/slbt_ar_output_members.c6
1 files 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);