summaryrefslogtreecommitdiffstats
path: root/mbbsd/more.c
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-04-16 23:27:54 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-04-16 23:27:54 +0800
commit093514f131646bb73995b36862e2c1780f6968bd (patch)
tree7b51cea57064efcf6daf85270e75f5fb8362a24d /mbbsd/more.c
parent360869ccb2c85cd0564811c0280d0760ca532950 (diff)
downloadpttbbs-093514f131646bb73995b36862e2c1780f6968bd.tar
pttbbs-093514f131646bb73995b36862e2c1780f6968bd.tar.gz
pttbbs-093514f131646bb73995b36862e2c1780f6968bd.tar.bz2
pttbbs-093514f131646bb73995b36862e2c1780f6968bd.tar.lz
pttbbs-093514f131646bb73995b36862e2c1780f6968bd.tar.xz
pttbbs-093514f131646bb73995b36862e2c1780f6968bd.tar.zst
pttbbs-093514f131646bb73995b36862e2c1780f6968bd.zip
fix MDCACHE
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@119 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/more.c')
-rw-r--r--mbbsd/more.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/mbbsd/more.c b/mbbsd/more.c
index a932d585..0ffc3793 100644
--- a/mbbsd/more.c
+++ b/mbbsd/more.c
@@ -1,4 +1,4 @@
-/* $Id: more.c,v 1.7 2002/04/16 14:55:31 in2 Exp $ */
+/* $Id: more.c,v 1.8 2002/04/16 15:27:54 in2 Exp $ */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -238,11 +238,12 @@ int more(char *fpath, int promptend) {
/* we only cache boards/ and etc/ */
char *cpath;
cpath = cachepath(fpath);
- ++GLOBE[0];
- if( (fd = open(cpath, O_RDONLY)) < 0 &&
- (fd = updatemdcache(cpath, fpath)) < 0 )
+ ++GLOBE[8];
+ if( (fd = open(cpath, O_RDONLY)) >= 0 )
+ ++GLOBE[9];
+ else
+ if( (fd = updatemdcache(cpath, fpath)) < 0 )
return -1;
- ++GLOBE[1];
}
else
fd = open (fpath, O_RDONLY, 0600);