summaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-03-10 01:19:16 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-03-10 01:19:16 +0800
commita0baab6a9bbe6e76779927273f3faeba5b4d3990 (patch)
treeb69547ad9fd706025c95c7ac9ed24b7dd187ef03 /util
parentc4bee2e328774a4226673a1d28db06f4c2e4097d (diff)
downloadpttbbs-a0baab6a9bbe6e76779927273f3faeba5b4d3990.tar
pttbbs-a0baab6a9bbe6e76779927273f3faeba5b4d3990.tar.gz
pttbbs-a0baab6a9bbe6e76779927273f3faeba5b4d3990.tar.bz2
pttbbs-a0baab6a9bbe6e76779927273f3faeba5b4d3990.tar.lz
pttbbs-a0baab6a9bbe6e76779927273f3faeba5b4d3990.tar.xz
pttbbs-a0baab6a9bbe6e76779927273f3faeba5b4d3990.tar.zst
pttbbs-a0baab6a9bbe6e76779927273f3faeba5b4d3990.zip
-.-"
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@14 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'util')
-rw-r--r--util/cpdeadbrd.c41
1 files changed, 0 insertions, 41 deletions
diff --git a/util/cpdeadbrd.c b/util/cpdeadbrd.c
deleted file mode 100644
index 12c5827e..00000000
--- a/util/cpdeadbrd.c
+++ /dev/null
@@ -1,41 +0,0 @@
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <dirent.h>
-#include <unistd.h>
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <unistd.h>
-#include "config.h"
-#include "pttstruct.h"
-#include "util.h"
-
-extern int numboards;
-extern boardheader_t *bcache;
-int main(int argc, char* argv[]){
-struct stat st;
-boardheader_t *bptr;
- int n;
- char pathname[1024];
-
- resolve_boards();
- for (n=numboards-1;n>0;n--)
- {
-
- bptr = &bcache[n];
- if(!strcmp(bptr->brdname,"ck53rd316"))continue;
- sprintf(pathname,"/home/bbs/boards/%s/.DIR",bptr->brdname);
- if(stat(pathname, &st) == -1)
- {
- printf("%s is dead\n",pathname);
- sprintf (pathname,"cp -R /mnt/bbs/boards/%s /home/bbs/boards/%s",bptr->brdname,bptr->brdname);
- }
- }
-}
-
-
-
-
-
-
-