summaryrefslogtreecommitdiffstats
path: root/mbbsd/more.c
diff options
context:
space:
mode:
authorptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-04-16 01:07:11 +0800
committerptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-04-16 01:07:11 +0800
commit65ff9f98b70203b08ed8238c6ed389f21c61f289 (patch)
treed583dd7a375eb0b66c751119d88d6ecd009c935f /mbbsd/more.c
parent08666c93cbcadc1787ed05093992630b891ff498 (diff)
downloadpttbbs-65ff9f98b70203b08ed8238c6ed389f21c61f289.tar
pttbbs-65ff9f98b70203b08ed8238c6ed389f21c61f289.tar.gz
pttbbs-65ff9f98b70203b08ed8238c6ed389f21c61f289.tar.bz2
pttbbs-65ff9f98b70203b08ed8238c6ed389f21c61f289.tar.lz
pttbbs-65ff9f98b70203b08ed8238c6ed389f21c61f289.tar.xz
pttbbs-65ff9f98b70203b08ed8238c6ed389f21c61f289.tar.zst
pttbbs-65ff9f98b70203b08ed8238c6ed389f21c61f289.zip
*** empty log message ***
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@105 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/more.c')
-rw-r--r--mbbsd/more.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/mbbsd/more.c b/mbbsd/more.c
index a65c1ee5..4265d75f 100644
--- a/mbbsd/more.c
+++ b/mbbsd/more.c
@@ -1,4 +1,4 @@
-/* $Id: more.c,v 1.2 2002/04/15 12:05:52 in2 Exp $ */
+/* $Id: more.c,v 1.3 2002/04/15 17:07:11 ptt Exp $ */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -233,9 +233,10 @@ int more(char *fpath, int promptend) {
*search_str = 0;
#ifdef MDCACHE
- if( strncmp(fpath, "boards/", 7) == 0 || strncmp(fpath, "etc/", 4) == 0 ){
+ if(!promptend){
/* we only cache boards/ and etc/ */
- char *cpath = cachepath(fpath);
+ char cpath[256];
+ cachepath(cpath,fpath);
++GLOBE[0];
if( (fd = open(cpath, O_RDONLY)) < 0 ){
if( (fd = updatemdcache(cpath, fpath)) < 0 )