From 6a5eda63539b292f59b92c3a11213346f51a6453 Mon Sep 17 00:00:00 2001 From: Peter Hyman Date: Fri, 6 Mar 2015 05:21:32 -0800 Subject: [PATCH] fix order of lrzip.conf search --- util.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/util.c b/util.c index 8190364..b931293 100644 --- a/util.c +++ b/util.c @@ -187,11 +187,6 @@ bool read_config(rzip_control *control) fp = fopen("lrzip.conf", "r"); if (fp) fprintf(control->msgout, "Using configuration file ./lrzip.conf\n"); - if (fp == NULL) { - fp = fopen("/etc/lrzip/lrzip.conf", "r"); - if (fp) - fprintf(control->msgout, "Using configuration file /etc/lrzip/lrzip.conf\n"); - } if (fp == NULL) { HOME=getenv("HOME"); if (HOME) { @@ -201,6 +196,11 @@ bool read_config(rzip_control *control) fprintf(control->msgout, "Using configuration file %s\n", homeconf); } } + if (fp == NULL) { + fp = fopen("/etc/lrzip/lrzip.conf", "r"); + if (fp) + fprintf(control->msgout, "Using configuration file /etc/lrzip/lrzip.conf\n"); + } if (fp == NULL) return true;