summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
authorptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-04-13 15:15:07 +0800
committerptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-04-13 15:15:07 +0800
commit5d2582c82fac8c71375df1b7a356de53dd76bcdc (patch)
tree8d8b41a9d349d260a41a134c946340906fc6758d /mbbsd
parentf36f9de0e98617e78bbdf0d171a3ed4750961f50 (diff)
downloadpttbbs-5d2582c82fac8c71375df1b7a356de53dd76bcdc.tar
pttbbs-5d2582c82fac8c71375df1b7a356de53dd76bcdc.tar.gz
pttbbs-5d2582c82fac8c71375df1b7a356de53dd76bcdc.tar.bz2
pttbbs-5d2582c82fac8c71375df1b7a356de53dd76bcdc.tar.lz
pttbbs-5d2582c82fac8c71375df1b7a356de53dd76bcdc.tar.xz
pttbbs-5d2582c82fac8c71375df1b7a356de53dd76bcdc.tar.zst
pttbbs-5d2582c82fac8c71375df1b7a356de53dd76bcdc.zip
avoid delete board by delete article
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1746 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/bbs.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c
index 0d947ebb..f36b8036 100644
--- a/mbbsd/bbs.c
+++ b/mbbsd/bbs.c
@@ -371,6 +371,8 @@ cancelpost(fileheader_t * fh, int by_BM, char *newpath)
char genbuf[200];
char nick[STRLEN], fn1[STRLEN];
+
+ if(!fh->filename[0]) return;
setbfile(fn1, currboard, fh->filename);
if ((fin = fopen(fn1, "r"))) {
brd = by_BM ? "deleted" : "junk";