summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-10-22 14:03:23 +0800
committerwens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-10-22 14:03:23 +0800
commitaff02e2bcdffc6a3c8f3366de143ddba51442eb5 (patch)
tree33d3ff71359ea620a3d6d17b469fbcf2c8fccca9
parent538d328a4d98bd1852225ca144cb4893f3df98f0 (diff)
downloadpttbbs-aff02e2bcdffc6a3c8f3366de143ddba51442eb5.tar
pttbbs-aff02e2bcdffc6a3c8f3366de143ddba51442eb5.tar.gz
pttbbs-aff02e2bcdffc6a3c8f3366de143ddba51442eb5.tar.bz2
pttbbs-aff02e2bcdffc6a3c8f3366de143ddba51442eb5.tar.lz
pttbbs-aff02e2bcdffc6a3c8f3366de143ddba51442eb5.tar.xz
pttbbs-aff02e2bcdffc6a3c8f3366de143ddba51442eb5.tar.zst
pttbbs-aff02e2bcdffc6a3c8f3366de143ddba51442eb5.zip
Remove board directory if failed
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4409 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--mbbsd/admin.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/mbbsd/admin.c b/mbbsd/admin.c
index 140261b9..4706f999 100644
--- a/mbbsd/admin.c
+++ b/mbbsd/admin.c
@@ -1013,6 +1013,9 @@ m_newbrd(int whatclass, int recover)
vmsg("看板已滿,請洽系統站長");
else
vmsg("看板寫入失敗");
+
+ setbpath(genbuf, newboard.brdname);
+ rmdir(genbuf);
return -1;
}