diff options
Diffstat (limited to 'mbbsd/more.c')
-rw-r--r-- | mbbsd/more.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/mbbsd/more.c b/mbbsd/more.c index aa706617..0a6cbb59 100644 --- a/mbbsd/more.c +++ b/mbbsd/more.c @@ -1,4 +1,4 @@ -/* $Id: more.c,v 1.5 2002/04/15 19:17:20 ptt Exp $ */ +/* $Id: more.c,v 1.6 2002/04/15 19:56:53 in2 Exp $ */ #include <stdio.h> #include <stdlib.h> #include <string.h> @@ -233,12 +233,13 @@ int more(char *fpath, int promptend) { *search_str = 0; #ifdef MDCACHE - if(!promptend && strncmp(fpath,"home",4)){ + //if(!promptend && strncmp(fpath,"home",4)){ + if( strncmp(fpath, "boards/", 7) == 0 || strncmp(fpath, "etc/", 4) == 0 ){ /* we only cache boards/ and etc/ */ char cpath[256]; cachepath(cpath,fpath); ++GLOBE[0]; - if( (fd = open(cpath, O_RDONLY)) < 0 || + if( (fd = open(cpath, O_RDONLY)) < 0 && (fd = updatemdcache(cpath, fpath)) < 0 ) return -1; ++GLOBE[1]; |