[1043] in Athena Bugs
(VS2) Version 6.0C: ar r and ar d don't truncate
daemon@ATHENA.MIT.EDU (Mark W. Eichin)
Sat Sep 24 08:00:58 1988
Date: Sat, 24 Sep 88 08:00:38 EDT
From: Mark W. Eichin <eichin@ATHENA.MIT.EDU>
To: Splat! <bugs@ATHENA.MIT.EDU>
System type, version: (VS2) Version 6.0C
System name: oliver
What's wrong:
If I create an archive with long names in it, they get truncated.
If I try to delete something (ar d) using the full original name, I
get the error `not found'. Broken, but at least it warned me.
If I try to replace something (ar r) using the full original name, it
warns me that it truncated it but NEVER DELETES THE ORIGINAL. It just
adds another copy of the same name. NO WARNING IS GIVEN of this
duplication. This failure mode is most insidious, since the linker
will only use the first entry (it also doesn't warn of duplicates; is
that *another* bug?)
oliver% ar cqv libgms.a get_servername.o
q - get_servername.o
ar: filename get_servername.o truncated to get_servername.
oliver% ar dv libgms.a get_servername.o
ar: get_servername.o not found
oliver% ar rv libgms.a get_servername.o
a - get_servername.o
ar: filename get_servername.o truncated to get_servername.
oliver% ar tv libgms.a
rw-r--r--3382/101 1874 Sep 24 07:49 1988 get_servername.
rw-r--r--3382/101 1874 Sep 24 07:49 1988 get_servername.
oliver%
What should have happened:
If it must truncate (SVID: just say no!) then it must truncate
CONSISTENTLY.
Mark Eichin
<eichin@athena.mit.edu>
SIPB Member & Project Athena ``Watchmaker''