commit 3842363abcf0fba2701a960d03ab5e9a24cafc8c
parent c4553e9cd0f42874d23d5c99ea68ea57513206b1
Author: rsc <devnull@localhost>
Date: Wed, 2 Feb 2005 22:32:56 +0000
silence archive warning for .a files
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/cmd/mk/archive.c b/src/cmd/mk/archive.c
@@ -216,7 +216,8 @@ type(char *file)
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;