diff options
author | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-04-18 13:22:47 +0800 |
---|---|---|
committer | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-04-18 13:22:47 +0800 |
commit | ce3b6974793db3c2d95e5f4c88a45af377985a54 (patch) | |
tree | ad3eac98f8b4bac11ece18c889ab1c4eb259cdab /mbbsd/board.c | |
parent | e89db4fe4cc15f85de1da9b1b65fc87a77a0c594 (diff) | |
download | pttbbs-ce3b6974793db3c2d95e5f4c88a45af377985a54.tar pttbbs-ce3b6974793db3c2d95e5f4c88a45af377985a54.tar.gz pttbbs-ce3b6974793db3c2d95e5f4c88a45af377985a54.tar.bz2 pttbbs-ce3b6974793db3c2d95e5f4c88a45af377985a54.tar.lz pttbbs-ce3b6974793db3c2d95e5f4c88a45af377985a54.tar.xz pttbbs-ce3b6974793db3c2d95e5f4c88a45af377985a54.tar.zst pttbbs-ce3b6974793db3c2d95e5f4c88a45af377985a54.zip |
D: delete symlink
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1777 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/board.c')
-rw-r--r-- | mbbsd/board.c | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/mbbsd/board.c b/mbbsd/board.c index 66644967..bfc602ed 100644 --- a/mbbsd/board.c +++ b/mbbsd/board.c @@ -805,6 +805,10 @@ choose_board(int newflag) yank_flag = (yank_flag + 1) % 2; brdnum = -1; break; + case 'D': + ptr = &nbrd[num]; + delete_symbolic_link(&bcache[ptr->bid - 1], ptr->bid); + break; case Ctrl('D'): if (HAS_PERM(PERM_LOGINOK)) { fav_remove_all_tagged_item(); @@ -977,15 +981,6 @@ choose_board(int newflag) if (HAS_PERM(PERM_LOGINOK)) vmsg("嘿嘿 這個功\能已經被我的最愛取代掉了喔!"); break; -#ifdef DEBUG - case 'A': - if (1) { - char genbuf[200]; - sprintf(genbuf, "brdnum: %d num: %d", brdnum, num); - vmsg(genbuf); - } - break; -#endif case 'Z': if (HAS_PERM(PERM_LOGINOK)) { char genbuf[256]; |