snprintf(tusr,sizeof(tusr),"%s/sarg-users",outdirname);
if((fp_ou=fopen(tusr,"w"))==NULL) {
- debuga(_("(topuser) Cannot open file %s\n"),tusr);
+ debuga(_("(topuser) Cannot open file %s: %s\n"),tusr,strerror(errno));
exit(EXIT_FAILURE);
}
fprintf(fp_ou,"%d\n",totuser);
ntopuser = 0;
snprintf(wger,sizeof(wger),"%s/sarg-general",outdirname);
if((fp_in=fopen(wger,"r"))==NULL) {
- debuga(_("(topuser) Cannot open file %s\n"),wger);
+ debuga(_("(topuser) Cannot open file %s: %s\n"),wger,strerror(errno));
exit(EXIT_FAILURE);
}
snprintf(top2,sizeof(top2),"%s/top.tmp",outdirname);
if((fp_top2=fopen(top2,"w"))==NULL) {
- debuga(_("(topuser) Cannot open file %s\n"),top2);
+ debuga(_("(topuser) Cannot open file %s: %s\n"),top2,strerror(errno));
exit(EXIT_FAILURE);
}
}
if((fp_top1=fopen(top1,"r"))==NULL) {
- debuga(_("(topuser) Cannot open file %s\n"),top1);
+ debuga(_("(topuser) Cannot open file %s: %s\n"),top1,strerror(errno));
exit(EXIT_FAILURE);
}
snprintf(top3,sizeof(top3),"%s/index.html",outdirname);
if((fp_top3=fopen(top3,"w"))==NULL) {
- debuga(_("(topuser) Cannot open file %s\n"),top3);
+ debuga(_("(topuser) Cannot open file %s: %s\n"),top3,strerror(errno));
exit(EXIT_FAILURE);
}