Move initialization of datasets to a point after privileges
have been dropped.
Ticket 4239
* Will be run once per pcap in unix-socket mode */
void PreRunInit(const int runmode)
{
- /* Initialize Datasets to be able to use them with unix socket */
- DatasetsInit();
HttpRangeContainersInit();
if (runmode == RUNMODE_UNIX_SOCKET)
return;
{
StatsSetupPostConfigPreOutput();
RunModeInitializeOutputs();
+ DatasetsInit();
if (runmode == RUNMODE_UNIX_SOCKET) {
/* As the above did some necessary startup initialization, it