K 10 svn:author V 6 emaste K 8 svn:date V 27 2021-10-17T18:49:19.396780Z K 7 svn:log V 660 ar: provide error exit status upon failure Previously ar and ranlib returned with exit status 0 (success) in the case of a missing file or other error. Update to use error handling similar to that added by ELF Tool Chain after that project forked FreeBSD's ar. PR: PR257599 [exp-run] Reported by: Shawn Webb, gehmehgeh (on HardenedBSD IRC) Reviewed by: markj Obtained from: elftoolchain MFC after: 2 months Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D31402 (cherry picked from commit 38911b3c2c7dbb9a097b44856472ebbbedde71fc) Git Hash: fb15a9f90b29da471892ad1e0a1bb7173a7da858 Git Author: emaste@FreeBSD.org END