diff options
author | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-10-28 15:17:01 +0800 |
---|---|---|
committer | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-10-28 15:17:01 +0800 |
commit | dc1acd98048b748ec801dc86187ff5362d546de1 (patch) | |
tree | a62855b2d05d8ffe43cb1c7731c83cb388de1fa6 | |
parent | bcda9f24af30839188249240cd6da276f1fd8f8f (diff) | |
download | pttbbs-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
-rw-r--r-- | mbbsd/admin.c | 4 |
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)); |