diff options
author | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-04-09 01:25:01 +0800 |
---|---|---|
committer | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-04-09 01:25:01 +0800 |
commit | 1b62629efeb916cbb1b11946fd81e76b8c3a7e78 (patch) | |
tree | 98f4089acb60a33ed7d715ec557f048c87aa18aa /mbbsd | |
parent | 66cc85d5a635f7acd24d706704002b3aecd7ad8c (diff) | |
download | pttbbs-1b62629efeb916cbb1b11946fd81e76b8c3a7e78.tar pttbbs-1b62629efeb916cbb1b11946fd81e76b8c3a7e78.tar.gz pttbbs-1b62629efeb916cbb1b11946fd81e76b8c3a7e78.tar.bz2 pttbbs-1b62629efeb916cbb1b11946fd81e76b8c3a7e78.tar.lz pttbbs-1b62629efeb916cbb1b11946fd81e76b8c3a7e78.tar.xz pttbbs-1b62629efeb916cbb1b11946fd81e76b8c3a7e78.tar.zst pttbbs-1b62629efeb916cbb1b11946fd81e76b8c3a7e78.zip |
double check if access control violation
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@782 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r-- | mbbsd/bbs.c | 6 |
1 files changed, 5 insertions, 1 deletions
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] <= ' ') |