diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-07-06 01:00:20 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-07-06 01:00:20 +0800 |
commit | 7cd1f7e5db290044028fc89ca12e7be151f4c9a5 (patch) | |
tree | de6c50135ddb9e191238b2b72c2e68952939c13f /util | |
parent | c878b5d74bf21f3b76ee300ebd5be4c1c49002a4 (diff) | |
download | pttbbs-7cd1f7e5db290044028fc89ca12e7be151f4c9a5.tar pttbbs-7cd1f7e5db290044028fc89ca12e7be151f4c9a5.tar.gz pttbbs-7cd1f7e5db290044028fc89ca12e7be151f4c9a5.tar.bz2 pttbbs-7cd1f7e5db290044028fc89ca12e7be151f4c9a5.tar.lz pttbbs-7cd1f7e5db290044028fc89ca12e7be151f4c9a5.tar.xz pttbbs-7cd1f7e5db290044028fc89ca12e7be151f4c9a5.tar.zst pttbbs-7cd1f7e5db290044028fc89ca12e7be151f4c9a5.zip |
initbbs should also create 0-9 to prevent errors.
thx to CatMan in ptt2-PttBug
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2897 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'util')
-rw-r--r-- | util/initbbs.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/util/initbbs.c b/util/initbbs.c index a8468290..6003b59c 100644 --- a/util/initbbs.c +++ b/util/initbbs.c @@ -23,6 +23,11 @@ static void initHome() { mkdir(buf, 0755); buf[5] = 'a' + i; mkdir(buf, 0755); + if(i >= 10) + continue; + /* 0~9 */ + buf[5] = '0' + i; + mkdir(buf, 0755); } } |