]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r339648: ar: report errno on warning/error
authoremaste <emaste@FreeBSD.org>
Mon, 29 Apr 2019 18:28:34 +0000 (18:28 +0000)
committeremaste <emaste@FreeBSD.org>
Mon, 29 Apr 2019 18:28:34 +0000 (18:28 +0000)
commitffe34adc3f7819208a051c808d24d3655174d5b5
tree41752f2676be5766bfce4ea4137255d0e81e7a46
parent1e04395278a18f88ab7be4d2735247de62a2159e
MFC r339648:     ar: report errno on warning/error

Previously ar would report an error like "ar: fatal: Write error"
without including additional errno information.  Change warnings and
errors to include archive_errno() so that the user may have some idea
of the reason for the failure.

Sponsored by: The FreeBSD Foundation
usr.bin/ar/acpyacc.y
usr.bin/ar/ar.h
usr.bin/ar/read.c
usr.bin/ar/write.c