Skip to content
Snippets Groups Projects
Commit d4072b08 authored by rswindell's avatar rswindell
Browse files

New usage of iniGetString().

parent 9df82180
No related branches found
No related tags found
No related merge requests found
...@@ -852,6 +852,7 @@ int main(int argc, char** argv) ...@@ -852,6 +852,7 @@ int main(int argc, char** argv)
node_t node; node_t node;
#ifdef __unix__ #ifdef __unix__
char daemon_type[2]; char daemon_type[2];
char value[MAX_VALUE_LEN];
struct passwd* pw_entry; struct passwd* pw_entry;
struct group* gr_entry; struct group* gr_entry;
sigset_t sigs; sigset_t sigs;
...@@ -1023,10 +1024,10 @@ int main(int argc, char** argv) ...@@ -1023,10 +1024,10 @@ int main(int argc, char** argv)
/* read/default any sbbscon-specific .ini keys here */ /* read/default any sbbscon-specific .ini keys here */
#if defined(__unix__) #if defined(__unix__)
SAFECOPY(new_uid_name,iniGetString(fp,"UNIX","User","")); SAFECOPY(new_uid_name,iniGetString(fp,"UNIX","User","",value));
SAFECOPY(new_gid_name,iniGetString(fp,"UNIX","Group","")); SAFECOPY(new_gid_name,iniGetString(fp,"UNIX","Group","",value));
is_daemon=iniGetBool(fp,"UNIX","Daemonize",FALSE); is_daemon=iniGetBool(fp,"UNIX","Daemonize",FALSE);
SAFECOPY(daemon_type,iniGetString(fp,"UNIX","LogFacility","U")); SAFECOPY(daemon_type,iniGetString(fp,"UNIX","LogFacility","U",value));
#endif #endif
/* close .ini file here */ /* close .ini file here */
if(fp!=NULL) if(fp!=NULL)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment