summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2007-01-29 11:06:26 +0800
committerwens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2007-01-29 11:06:26 +0800
commit7c846ddb13e621341a41d1cb98b98c2fd543a544 (patch)
tree8a4dbf28ca6c2cd6542912c6457f100568d20062
parent3e14bd7a8e2dc22b2f2e636d5a17c7adb0746958 (diff)
downloadpttbbs-7c846ddb13e621341a41d1cb98b98c2fd543a544.tar
pttbbs-7c846ddb13e621341a41d1cb98b98c2fd543a544.tar.gz
pttbbs-7c846ddb13e621341a41d1cb98b98c2fd543a544.tar.bz2
pttbbs-7c846ddb13e621341a41d1cb98b98c2fd543a544.tar.lz
pttbbs-7c846ddb13e621341a41d1cb98b98c2fd543a544.tar.xz
pttbbs-7c846ddb13e621341a41d1cb98b98c2fd543a544.tar.zst
pttbbs-7c846ddb13e621341a41d1cb98b98c2fd543a544.zip
big hole in lock post
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3481 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--mbbsd/bbs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c
index a5d72bd5..078ccc7c 100644
--- a/mbbsd/bbs.c
+++ b/mbbsd/bbs.c
@@ -2637,14 +2637,14 @@ del_post(int ent, fileheader_t * fhdr, char *direct)
(fhdr->owner[0] == '-'))
return DONOTHING;
- if (fhdr->filename[0]=='L') fhdr->filename[0]='M';
-
not_owned = (tusernum == usernum ? 0: 1);
if ((!(currmode & MODE_BOARD) && not_owned) ||
((bp->brdattr & BRD_VOTEBOARD) && !HasUserPerm(PERM_SYSOP)) ||
!strcmp(cuser.userid, STR_GUEST))
return DONOTHING;
+ if (fhdr->filename[0]=='L') fhdr->filename[0]='M';
+
getdata(1, 0, msg_del_ny, genbuf, 3, LCECHO);
if (genbuf[0] == 'y') {
if(