Concern about recent patch
Mon Jun 26 13:36:00 GMT 2000
I'm very concerned about this change:
2000-06-25 Alexander Aganichev <AAganichev@hypercom.com>
* ar.c (normalize): Advance past both characters in a DOS based
<letter>: filepath prefix.
* bucomm.c (make_tempname): Likewise.
I believe this patch should be reverted. For example, let variable 'file'
if (filename == NULL && file != '\0' && file == ':')
filename = file + 2;
[filename now points to 'nm.o']
if (filename != (char *) NULL)
[Oops! filename now points to 'm.o']
One solution is to revert the patch. But I'd also be in favor of replacing
this mess with basename and let it deal with the dirty work.
More information about the Binutils