aboutsummaryrefslogtreecommitdiff
path: root/gmid.c
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2024-01-11 13:17:44 +0000
committerOmar Polo <op@omarpolo.com>2024-01-11 13:17:44 +0000
commit0d5282b6475a30a3f39559c67a1504cc7c6930ea (patch)
treec55d824f09766fae50a1c003e6a9c7ad1007af25 /gmid.c
parente78e2923eaefdd50c60a603502dd43f58b16e47e (diff)
configure: add --sysconfdir / $SYSCONFDIR handling
so that we don't have to hardcode /etc in gmid.c. Helps on systems like FreeBSD where the non-base programs are expected to look for their config in /usr/local/etc.
Diffstat (limited to 'gmid.c')
-rw-r--r--gmid.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gmid.c b/gmid.c
index d424969..54441f3 100644
--- a/gmid.c
+++ b/gmid.c
@@ -68,7 +68,7 @@ int pidfd = -1;
int debug, verbose;
-const char *config_path = "/etc/gmid.conf";
+const char *config_path = SYSCONFDIR "/gmid.conf";
const char *pidfile;
static void