ape/make reporting when in deep directories "Directory .: Make: Cannot open. Stop." Turned out to be a buglet in the implementation of dirstat in ape, obvious when compared to /sys/src/libc/9sys/dirstat.c Unfortunately this will mean most of APEs commands will need to be recompiled and pushed out. -Steve Reference: /n/sources/patch/applied/ape-dirstat Date: Sat Jan 7 13:28:06 CET 2006 --- /sys/src/ape/lib/ap/plan9/dirstat.c Thu Jan 5 13:46:40 2006 +++ /sys/src/ape/lib/ap/plan9/dirstat.c Thu Jan 5 13:46:30 2006 @@ -18,11 +18,11 @@ nd = DIRSIZE; for(i=0; i<2; i++){ /* should work by the second try */ - d = malloc(sizeof(Dir) + nd); + d = malloc(sizeof(Dir) + BIT16SZ +nd); if(d == nil) return nil; buf = (uchar*)&d[1]; - n = _STAT(name, buf, nd); + n = _STAT(name, buf, BIT16SZ+nd); if(n < BIT16SZ){ free(d); return nil; @@ -32,7 +32,7 @@ _convM2D(buf, n, d, (char*)&d[1]); return d; } - /* else sizeof(Dir)+nd is plenty */ + /* else sizeof(Dir)+BIT16SZ+nd is plenty */ free(d); } return nil;