summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-05-24 11:45:14 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-05-24 11:45:14 +0800
commit1bae6c6c3e6a0c01a9fefd9636470f0ce0907689 (patch)
tree697eeb6050f680a2731f88116c35cbe94fc15ffe
parenta26d468170bf3e193815b960f9139339e450b762 (diff)
downloadpttbbs-1bae6c6c3e6a0c01a9fefd9636470f0ce0907689.tar
pttbbs-1bae6c6c3e6a0c01a9fefd9636470f0ce0907689.tar.gz
pttbbs-1bae6c6c3e6a0c01a9fefd9636470f0ce0907689.tar.bz2
pttbbs-1bae6c6c3e6a0c01a9fefd9636470f0ce0907689.tar.lz
pttbbs-1bae6c6c3e6a0c01a9fefd9636470f0ce0907689.tar.xz
pttbbs-1bae6c6c3e6a0c01a9fefd9636470f0ce0907689.tar.zst
pttbbs-1bae6c6c3e6a0c01a9fefd9636470f0ce0907689.zip
use bcache instead getbcache
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@895 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--mbbsd/announce.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/mbbsd/announce.c b/mbbsd/announce.c
index 0e4d3fc4..8bd39115 100644
--- a/mbbsd/announce.c
+++ b/mbbsd/announce.c
@@ -1,4 +1,4 @@
-/* $Id: announce.c,v 1.21 2003/05/16 06:31:33 in2 Exp $ */
+/* $Id: announce.c,v 1.22 2003/05/24 03:45:14 in2 Exp $ */
#include "bbs.h"
static void
@@ -1431,13 +1431,9 @@ a_menu(char *maintitle, char *path, int lastlevel)
case 'c':
if (me.now < me.num) {
- boardheader_t *bp;
if (!isvisible_man(&me))
break;
- if( !(bp = getbcache(getbnum(currboard))) )
- break;
-
snprintf(fname, sizeof(fname), "%s/%s", path,
me.header[me.now - me.page].filename);
@@ -1447,7 +1443,8 @@ a_menu(char *maintitle, char *path, int lastlevel)
還是檔案竟然是用 fstat(2) 而不是直接存在 .DIR 內 |||b
須等該資料寫入 .DIR 內再 implement才有效率.
*/
- if( !HAS_PERM(PERM_SYSOP) && !is_BM(bp->BM) && dashd(fname) )
+ if( !HAS_PERM(PERM_SYSOP) && !is_BM(bcache[currbid - 1].BM) &&
+ dashd(fname) )
vmsg("只有板主才可以拷貝目錄唷!");
else
a_copyitem(fname, me.header[me.now - me.page].title, 0, 1);