]> git.ipfire.org Git - thirdparty/sarg.git/blobdiff - getconf.c
Output only two sets of messages when fclose fails
[thirdparty/sarg.git] / getconf.c
index 74bdeee4c36fab6a63f592c6468b2b9c9b10fb93..67fdf389f16647463b01ecf831ea4b1875084ff6 100644 (file)
--- a/getconf.c
+++ b/getconf.c
@@ -980,6 +980,9 @@ void getconf(void)
 
        }
 
-       fclose(fp_in);
+       if (fclose(fp_in)==EOF) {
+               debuga(_("Read error in \"%s\": %s\n"),ConfigFile,strerror(errno));
+               exit(EXIT_FAILURE);
+       }
        return;
 }