[patch] better error output from ar when given a directory

Mike Frysinger vapier@gentoo.org
Sun Oct 22 05:01:00 GMT 2006


if you feed a directory to ar when trying to create an archive, the error is a 
bit misleading:
$ mkdir foo
$ touch foo.c
$ ar rcv foo.a foo.c foo
a - foo.c
a - foo
ar: foo.a: Is a directory

the Debian guys got a bug report a long time ago about this issue:
http://bugs.debian.org/45832
but i cant seem to find any conversation on the binutils list about it ... so 
lets start one :)

updated/tweaked patch against latest cvs is attached ... Debian has been using 
this since 2.11.92.0.5 and Gentoo since 2.15.92.0.2 without any known 
regressions
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 827 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20061022/198cf1ca/attachment.sig>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: binutils-bfd-no-open-dir.patch
Type: text/x-diff
Size: 432 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20061022/198cf1ca/attachment.bin>


More information about the Binutils mailing list