exit(EXIT_FAILURE);
}
- snprintf(top1,sizeof(top1),"%s/top",dirname);
- if((fp_top1=fopen(top1,"w"))==NULL) {
- debuga(_("(email) Cannot open file %s: %s\n"),top1,strerror(errno));
- exit(EXIT_FAILURE);
- }
-
snprintf(top2,sizeof(top2),"%s/top.tmp",dirname);
if((fp_top2=fopen(top2,"w"))==NULL) {
debuga(_("(email) Cannot open file %s: %s\n"),top2,strerror(errno));
while(fgets(warea,sizeof(warea),fp_top3)!=NULL)
fputs(warea,stdout);
+ if (fclose(fp_top3)==EOF) {
+ debuga(_("Read error in temporary mail file %s: %s\n"),top3,strerror(errno));
+ exit(EXIT_FAILURE);
+ }
} else {
/* TRANSLATORS: The string is formatted using strftime. You can use
any string formatting marker allowed by strftime. */