summaryrefslogtreecommitdiffstats
path: root/util/expire.c
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-11-11 11:06:03 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-11-11 11:06:03 +0800
commit7e904146df6d829418e8cecf8c1a67943de44d14 (patch)
treeeab1d98b4642315ba57185ac3af2bcf12c229bac /util/expire.c
parentb540cc30c25c0e6af1dd8726b14b0c7d28300a3b (diff)
downloadpttbbs-7e904146df6d829418e8cecf8c1a67943de44d14.tar
pttbbs-7e904146df6d829418e8cecf8c1a67943de44d14.tar.gz
pttbbs-7e904146df6d829418e8cecf8c1a67943de44d14.tar.bz2
pttbbs-7e904146df6d829418e8cecf8c1a67943de44d14.tar.lz
pttbbs-7e904146df6d829418e8cecf8c1a67943de44d14.tar.xz
pttbbs-7e904146df6d829418e8cecf8c1a67943de44d14.tar.zst
pttbbs-7e904146df6d829418e8cecf8c1a67943de44d14.zip
move error board to boards.error/
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@571 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'util/expire.c')
-rw-r--r--util/expire.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/util/expire.c b/util/expire.c
index 50c568da..30e9ab2f 100644
--- a/util/expire.c
+++ b/util/expire.c
@@ -1,4 +1,4 @@
-/* $Id: expire.c,v 1.5 2002/11/06 12:07:59 in2 Exp $ */
+/* $Id: expire.c,v 1.6 2002/11/11 03:06:03 in2 Exp $ */
/* 自動砍信工具程式 */
#include "bbs.h"
@@ -39,7 +39,11 @@ life *brd;
if((bid = getbnum(brd->bname)) == 0 ||
strcmp(brd->bname, bcache[bid-1].brdname))
{
- printf("no such board?: %s\n", brd->bname);
+ char cmd[1024];
+ printf("no such board?: %s\n", brd->bname);
+ sprintf(cmd, "mv %s/boards/%c/%s %s/boards.error/%s",
+ BBSHOME, brd->bname[0], brd->bname, BBSHOME, brd->bname);
+ system(cmd);
return;
}
#ifdef VERBOSE