diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-07-06 01:22:56 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-07-06 01:22:56 +0800 |
commit | 16b801264df97418bb84e0cd79f9ef32d93c28d9 (patch) | |
tree | a34404f4c05606fcdefa02c676eec8f717979e1b | |
parent | 7cd1f7e5db290044028fc89ca12e7be151f4c9a5 (diff) | |
download | pttbbs-16b801264df97418bb84e0cd79f9ef32d93c28d9.tar pttbbs-16b801264df97418bb84e0cd79f9ef32d93c28d9.tar.gz pttbbs-16b801264df97418bb84e0cd79f9ef32d93c28d9.tar.bz2 pttbbs-16b801264df97418bb84e0cd79f9ef32d93c28d9.tar.lz pttbbs-16b801264df97418bb84e0cd79f9ef32d93c28d9.tar.xz pttbbs-16b801264df97418bb84e0cd79f9ef32d93c28d9.tar.zst pttbbs-16b801264df97418bb84e0cd79f9ef32d93c28d9.zip |
fix #2897: should be board directories, not home
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2898 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | util/initbbs.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/util/initbbs.c b/util/initbbs.c index 6003b59c..fe2df2e9 100644 --- a/util/initbbs.c +++ b/util/initbbs.c @@ -23,11 +23,15 @@ static void initHome() { mkdir(buf, 0755); buf[5] = 'a' + i; mkdir(buf, 0755); +#if 0 + /* in current implementation we don't allow + * id as digits so we don't create now. */ if(i >= 10) continue; /* 0~9 */ buf[5] = '0' + i; mkdir(buf, 0755); +#endif } } @@ -42,6 +46,11 @@ static void initBoardsDIR() { mkdir(buf, 0755); buf[7] = 'a' + i; mkdir(buf, 0755); + if(i >= 10) + continue; + /* 0~9 */ + buf[7] = '0' + i; + mkdir(buf, 0755); } } @@ -57,6 +66,11 @@ static void initManDIR() { mkdir(buf, 0755); buf[11] = 'a' + i; mkdir(buf, 0755); + if(i >= 10) + continue; + /* 0~9 */ + buf[11] = '0' + i; + mkdir(buf, 0755); } } |