silence archive warning for .a files

This commit is contained in:
rsc 2005-02-02 22:32:56 +00:00
parent c4553e9cd0
commit 3842363abc

View file

@ -216,7 +216,8 @@ type(char *file)
fd = open(file, OREAD); fd = open(file, OREAD);
if(fd < 0){ if(fd < 0){
if(symlook(file, S_BITCH, 0) == 0){ if(symlook(file, S_BITCH, 0) == 0){
Bprint(&bout, "%s doesn't exist: assuming it will be an archive\n", file); if(strlen(file) < 2 || strcmp(file+strlen(file)-2, ".a") != 0)
Bprint(&bout, "%s doesn't exist: assuming it will be an archive\n", file);
symlook(file, S_BITCH, (void *)file); symlook(file, S_BITCH, (void *)file);
} }
return 1; return 1;