mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-03 21:25:07 -05:00
Fix creating logdir
This commit is contained in:
@@ -282,14 +282,10 @@ LOG_CreateLogFileDir(void)
|
|||||||
{
|
{
|
||||||
const char *logdir;
|
const char *logdir;
|
||||||
|
|
||||||
if (n_filelogs <= 0)
|
|
||||||
return;
|
|
||||||
|
|
||||||
logdir = CNF_GetLogDir();
|
logdir = CNF_GetLogDir();
|
||||||
|
|
||||||
if (!mkdir_and_parents(logdir)) {
|
if (!mkdir_and_parents(logdir)) {
|
||||||
LOG(LOGS_ERR, LOGF_Logging, "Could not create directory %s", logdir);
|
LOG(LOGS_ERR, LOGF_Logging, "Could not create directory %s", logdir);
|
||||||
n_filelogs = 0;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user