From a19d4f331aff338f4e5e0d1f2934f08b00d53140 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Sun, 16 Feb 2025 16:24:03 +0000 Subject: [PATCH] ctx: Remove another hard-coded configuration path Signed-off-by: Michael Tremer --- src/pakfire/ctx.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/pakfire/ctx.c b/src/pakfire/ctx.c index be95c61b..2d79b892 100644 --- a/src/pakfire/ctx.c +++ b/src/pakfire/ctx.c @@ -143,11 +143,9 @@ static int pakfire_ctx_load_config(struct pakfire_ctx* ctx, const char* path) { FILE* f = NULL; int r; -#warning HARD-CODED CONFIGURATION FILE PATH - // Load some default configuration if not path was provided if (!path) - path = "/etc/pakfire/pakfire.conf"; + path = PAKFIRE_CONFIG_DIR "/pakfire.conf"; // Open the configuration file f = fopen(path, "r"); -- 2.47.3