]> git.ipfire.org Git - pakfire.git/commitdiff
ctx: Remove another hard-coded configuration path
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 16 Feb 2025 16:24:03 +0000 (16:24 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 16 Feb 2025 16:24:03 +0000 (16:24 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/pakfire/ctx.c

index be95c61b1960de2d1fb12940c3ff6571ce4fed67..2d79b89273de3efff987a7db60105269054906ab 100644 (file)
@@ -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");