summaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
Diffstat (limited to 'util')
-rw-r--r--util/initbbs.c33
1 files changed, 32 insertions, 1 deletions
diff --git a/util/initbbs.c b/util/initbbs.c
index f88daf92..8d95534c 100644
--- a/util/initbbs.c
+++ b/util/initbbs.c
@@ -1,4 +1,4 @@
-/* $Id: initbbs.c,v 1.4 2002/05/25 11:17:55 ptt Exp $ */
+/* $Id: initbbs.c,v 1.5 2002/10/26 18:30:44 in2 Exp $ */
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
@@ -34,6 +34,35 @@ static void initHome() {
}
}
+static void initBoardsDIR() {
+ int i;
+ char buf[256];
+
+ mkdir("boards", 0755);
+ strcpy(buf, "boards/?");
+ for(i = 0; i < 26; i++) {
+ buf[7] = 'A' + i;
+ mkdir(buf, 0755);
+ buf[7] = 'a' + i;
+ mkdir(buf, 0755);
+ }
+}
+
+static void initManDIR() {
+ int i;
+ char buf[256];
+
+ mkdir("man", 0755);
+ mkdir("man/boards", 0755);
+ strcpy(buf, "man/boards/?");
+ for(i = 0; i < 26; i++) {
+ buf[11] = 'A' + i;
+ mkdir(buf, 0755);
+ buf[11] = 'a' + i;
+ mkdir(buf, 0755);
+ }
+}
+
static void initPasswds() {
int i;
userec_t u;
@@ -212,6 +241,8 @@ int main() {
initDir();
initHome();
+ initBoardsDIR();
+ initManDIR();
initPasswds();
initBoards();
initMan();