Allow the --output option of the "ar" prorgam to extract files to locations outside...
authorNick Clifton <nickc@redhat.com>
Thu, 7 Nov 2019 11:56:54 +0000 (11:56 +0000)
committerNick Clifton <nickc@redhat.com>
Thu, 7 Nov 2019 11:56:54 +0000 (11:56 +0000)
commite264b5b7a57dab997776ae845f9e0b3e5f20c713
treea80b6f31b2da2ab6debef8f6ff1c2bb66aa5aa8f
parentef07b8082ea5f9c48d0c6bcf0e4c1855ddf2c49b
Allow the --output option of the "ar" prorgam to extract files to locations outside of the current directory.

* ar.c (open_output_file): Check for filename validity before
prefixing with output directory.
Display the constructed output filename if in verbose mode.
(extract_file): Let open_output_file display the filename.
binutils/ChangeLog
binutils/ar.c
binutils/doc/binutils.texi