this is better placed in main.c.
/*
- * $Id: cache_cf.cc,v 1.399 2002/01/15 16:26:41 hno Exp $
+ * $Id: cache_cf.cc,v 1.400 2002/01/15 16:49:19 hno Exp $
*
* DEBUG: section 3 Configuration File Parsing
* AUTHOR: Harvest Derived
int err_count = 0;
configFreeMemory();
default_all();
- enter_suid();
if ((fp = fopen(file_name, "r")) == NULL)
fatalf("Unable to open configuration file: %s: %s",
file_name, xstrerror());
safe_free(tmp_line);
}
fclose(fp);
- leave_suid();
defaults_if_none();
configDoConfigure();
cachemgrRegister("config",
/*
- * $Id: main.cc,v 1.346 2001/12/24 15:33:43 adrian Exp $
+ * $Id: main.cc,v 1.347 2002/01/15 16:49:19 hno Exp $
*
* DEBUG: section 1 Startup and Main Loop
* AUTHOR: Harvest Derived
authenticateShutdown();
storeDirCloseSwapLogs();
errorClean();
+ enter_suid(); /* root to read config file */
parseConfigFile(ConfigFile);
+ setEffectiveUser();
_db_init(Config.Log.log, Config.debugOptions);
ipcache_restart(); /* clear stuck entries */
authenticateUserCacheRestart(); /* clear stuck ACL entries */