aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/mk
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2005-02-02 22:32:56 +0000
committerrsc <devnull@localhost>2005-02-02 22:32:56 +0000
commit3842363abcf0fba2701a960d03ab5e9a24cafc8c (patch)
tree2ada3be9fb8267aa371e755ab8a4a9817004d4eb /src/cmd/mk
parentc4553e9cd0f42874d23d5c99ea68ea57513206b1 (diff)
downloadplan9port-3842363abcf0fba2701a960d03ab5e9a24cafc8c.tar.gz
plan9port-3842363abcf0fba2701a960d03ab5e9a24cafc8c.tar.bz2
plan9port-3842363abcf0fba2701a960d03ab5e9a24cafc8c.zip
silence archive warning for .a files
Diffstat (limited to 'src/cmd/mk')
-rw-r--r--src/cmd/mk/archive.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cmd/mk/archive.c b/src/cmd/mk/archive.c
index fcfee03b..07aa565f 100644
--- 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;