commit - c4553e9cd0f42874d23d5c99ea68ea57513206b1
commit + 3842363abcf0fba2701a960d03ab5e9a24cafc8c
blob - fcfee03b2f42f2188d9ee618eb0f764027e9d1bd
blob + 07aa565f9c84b0ac6face1c1b5aeb7f49eef8f1a
--- src/cmd/mk/archive.c
+++ src/cmd/mk/archive.c
fd = open(file, OREAD);
if(fd < 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);
}
return 1;