summaryrefslogtreecommitdiffstats
path: root/mbbsd/admin.c
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-10-28 15:17:01 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-10-28 15:17:01 +0800
commitdc1acd98048b748ec801dc86187ff5362d546de1 (patch)
treea62855b2d05d8ffe43cb1c7731c83cb388de1fa6 /mbbsd/admin.c
parentbcda9f24af30839188249240cd6da276f1fd8f8f (diff)
downloadpttbbs-dc1acd98048b748ec801dc86187ff5362d546de1.tar
pttbbs-dc1acd98048b748ec801dc86187ff5362d546de1.tar.gz
pttbbs-dc1acd98048b748ec801dc86187ff5362d546de1.tar.bz2
pttbbs-dc1acd98048b748ec801dc86187ff5362d546de1.tar.lz
pttbbs-dc1acd98048b748ec801dc86187ff5362d546de1.tar.xz
pttbbs-dc1acd98048b748ec801dc86187ff5362d546de1.tar.zst
pttbbs-dc1acd98048b748ec801dc86187ff5362d546de1.zip
reject editing the symlink of board for security issue.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3234 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/admin.c')
-rw-r--r--mbbsd/admin.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/mbbsd/admin.c b/mbbsd/admin.c
index 50ca5785..b06bf775 100644
--- a/mbbsd/admin.c
+++ b/mbbsd/admin.c
@@ -527,6 +527,10 @@ m_mod_board(char *bname)
}
break;
case 'e':
+ if( bh.brdattr & BRD_SYMBOLIC ){
+ vmsg("禁止更動連結看板,請直接修正原看板");
+ break;
+ }
move(8, 0);
outs("直接按 [Return] 不修改該項設定");
memcpy(&newbh, &bh, sizeof(bh));