Set default chrony.conf path according to sysconfdir

This commit is contained in:
Miroslav Lichvar
2009-12-04 12:30:30 +01:00
parent fb538c3947
commit 1f6e508a3d
2 changed files with 9 additions and 1 deletions

6
conf.c
View File

@@ -58,7 +58,11 @@
/* ================================================== */
#define DEFAULT_CONF_FILE "/etc/chrony.conf"
#ifndef DEFAULT_CONF_DIR
#define DEFAULT_CONF_DIR "/etc"
#endif
#define DEFAULT_CONF_FILE DEFAULT_CONF_DIR"/chrony.conf"
/* ================================================== */
/* Forward prototypes */