HomeFreeBSD

ar: Avoid overwriting the stdout file stream pointer

Description

ar: Avoid overwriting the stdout file stream pointer

This doesn't work with musl, which defines stdout as FILE * const.
Instead, explicitly pass the desired output stream to ar_read_archive().

No functional change intended.

Reviewed by: emaste
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D34064

(cherry picked from commit 41e6398f9bc1bba4ed872118e742096d692fdfec)

Details

Provenance
markjAuthored on Jan 27 2022, 10:10 PM
emasteCommitted on Feb 9 2022, 3:28 PM
Reviewer
emaste
Differential Revision
D34064: ar: Avoid overwriting the stdout file stream pointer
Parents
rG6367fd2ccea3: ar: diff reduction against ELF Tool Chain
Branches
Unknown
Tags
Unknown