From 1b62629efeb916cbb1b11946fd81e76b8c3a7e78 Mon Sep 17 00:00:00 2001
From: in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>
Date: Tue, 8 Apr 2003 17:25:01 +0000
Subject: double check if access control violation

git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@782 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
---
 mbbsd/bbs.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c
index 2651e328..f031d919 100644
--- a/mbbsd/bbs.c
+++ b/mbbsd/bbs.c
@@ -1,4 +1,4 @@
-/* $Id: bbs.c,v 1.84 2003/04/08 09:53:21 in2 Exp $ */
+/* $Id: bbs.c,v 1.85 2003/04/08 17:25:01 in2 Exp $ */
 #include "bbs.h"
 
 static void
@@ -106,6 +106,10 @@ set_board()
     boardheader_t  *bp;
 
     bp = getbcache(currbid);
+    if( !Ben_Perm(bp) ){
+	vmsg("access control violation, exit");
+	u_exit("access control violation!");
+    }
     board_note_time = bp->bupdate;
     brd_title = bp->BM;
     if (brd_title[0] <= ' ')
-- 
cgit v1.2.3