From: Michael Tremer Date: Sun, 16 Feb 2025 16:24:03 +0000 (+0000) Subject: ctx: Remove another hard-coded configuration path X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a19d4f331aff338f4e5e0d1f2934f08b00d53140;p=pakfire.git ctx: Remove another hard-coded configuration path Signed-off-by: Michael Tremer --- 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");