]> git.ipfire.org Git - thirdparty/sarg.git/blobdiff - siteuser.c
Output only two sets of messages when fclose fails
[thirdparty/sarg.git] / siteuser.c
index 5b0e681cc51382cdb712414cddb4901291289d88..410c6dffd197ee1bb64463d64c4f0e66ccd05fd2 100644 (file)
@@ -175,7 +175,10 @@ void siteuser(void)
                }
 
        }
-       fclose(fp_in);
+       if (fclose(fp_in)==EOF) {
+               debuga(_("Read error in \"%s\": %s\n"),general2,strerror(errno));
+               exit(EXIT_FAILURE);
+       }
        longline_destroy(&line);
 
        if(regs>0) {