tsilence archive warning for .a files - plan9port - [fork] Plan 9 from user space
HTML git clone git://src.adamsgaard.dk/plan9port
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit 3842363abcf0fba2701a960d03ab5e9a24cafc8c
DIR parent c4553e9cd0f42874d23d5c99ea68ea57513206b1
HTML Author: rsc <devnull@localhost>
Date: Wed, 2 Feb 2005 22:32:56 +0000
silence archive warning for .a files
Diffstat:
M src/cmd/mk/archive.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
DIR diff --git a/src/cmd/mk/archive.c b/src/cmd/mk/archive.c
t@@ -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;