add: drop privileges
This commit is contained in:
parent
486b45c680
commit
1d8408581a
6 changed files with 118 additions and 7 deletions
src
10
src/config.c
10
src/config.c
|
@ -64,6 +64,16 @@ config_load(IniDispatch *disp, void *config_void)
|
|||
strcpy(config->database, disp->value);
|
||||
return 0;
|
||||
}
|
||||
if(CONFINI_IS_KEY("core", "user"))
|
||||
{
|
||||
strcpy(config->user, disp->value);
|
||||
return 0;
|
||||
}
|
||||
if(CONFINI_IS_KEY("core", "group"))
|
||||
{
|
||||
strcpy(config->group, disp->value);
|
||||
return 0;
|
||||
}
|
||||
if(CONFINI_IS_KEY("core", "not-found-file"))
|
||||
{
|
||||
strcpy(config->not_found_file, disp->value);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue