Skip to content
Snippets Groups Projects
Commit 7edb37da authored by deuce's avatar deuce
Browse files

Undo most of last commit... it broke .ini parsing. :-(

parent a4eaca71
No related branches found
No related tags found
No related merge requests found
......@@ -1058,6 +1058,14 @@ int main(int argc, char** argv)
prompt = "[Threads: %d Sockets: %d Clients: %d Served: %lu] (?=Help): ";
/* We call this function to set defaults, even if there's no .ini file */
sbbs_read_ini(fp,
&run_bbs, &bbs_startup,
&run_ftp, &ftp_startup,
&run_web, &web_startup,
&run_mail, &mail_startup,
&run_services, &services_startup);
/* read/default any sbbscon-specific .ini keys here */
#if defined(__unix__)
SAFECOPY(new_uid_name,iniGetString(fp,"UNIX","User","",value));
......@@ -1405,14 +1413,6 @@ int main(int argc, char** argv)
pidfile=fopen(SBBS_PID_FILE,"w");
}
/* We call this function to set defaults, even if there's no .ini file */
sbbs_read_ini(fp,
&run_bbs, &bbs_startup,
&run_ftp, &ftp_startup,
&run_web, &web_startup,
&run_mail, &mail_startup,
&run_services, &services_startup);
old_uid = getuid();
if((pw_entry=getpwnam(new_uid_name))!=0)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment