Ensure we mkdir before spawning PID file
This commit is contained in:
@@ -318,10 +318,9 @@ static int test_conf_syntax(void)
|
||||
if (fopen_and_mkdir(conf.rmps.errlog) != 0)
|
||||
failed = 1;
|
||||
} else if (!strcmp(buf, "rmps.pidfile")) {
|
||||
strcpy(conf.rmps.pidfile, tmp + 1);
|
||||
/*if (fopen_and_mkdir(conf.rmps.pidfile) != 0)
|
||||
* failed = 1;
|
||||
*/
|
||||
strncpy(conf.rmps.pidfile, tmp + 1, sizeof(conf.rmps.pidfile) - 1);
|
||||
if (fopen_and_mkdir(conf.rmps.pidfile) != 0)
|
||||
failed = 1;
|
||||
} else if (!strcmp(buf, "rmps.loglevel")) {
|
||||
if (strlen(tmp + 1) == 1 &&
|
||||
(tmp[1] > '0' && tmp[1] < '5'))
|
||||
|
||||
Reference in New Issue
Block a user