--- lbbs/src/init.c 2004/10/22 15:20:32 1.6 +++ lbbs/src/init.c 2005/03/20 17:37:14 1.9 @@ -42,8 +42,8 @@ init_daemon (void) else if (pid < 0) exit (1); - for (i = 0; i < NOFILE; ++i) - close (i); +// for (i = 0; i < NOFILE; ++i) +// close (i); chdir (app_home_dir); umask (0); @@ -63,17 +63,17 @@ load_conf (const char *conf_file) if ((fin = fopen (conf_file, "r")) == NULL) { - log_error ("Open bbsd.conf failed"); + log_error ("Open %s failed", conf_file); return -1; } while (fscanf (fin, "%s", c_name) != EOF) { if (c_name[0] == '#') - { - fgets(temp, 256, fin); - continue; - } + { + fgets (temp, 256, fin); + continue; + } fscanf (fin, "%*c"); if (strcmp (c_name, "bbs_id") == 0) { @@ -107,7 +107,7 @@ load_conf (const char *conf_file) { int y = 0, m = 0, d = 0; fscanf (fin, "%d-%d-%d", &y, &m, &d); - sprintf (BBS_start_dt, "%4d年%2d月%2d日",y,m,d); + sprintf (BBS_start_dt, "%4d年%2d月%2d日", y, m, d); } if (strcmp (c_name, "db_host") == 0) { @@ -128,6 +128,6 @@ load_conf (const char *conf_file) } fclose (fin); - + return 0; }