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;