fprintf(fp_ou,"<tr><th class=\"header_l\">%s</th><th class=\"header_l\">%s</th><th class=\"header_l\">%s</th><th class=\"header_l\">%s</th></tr>\n",_("USERID"),_("IP/NAME"),_("DATE/TIME"),_("ACCESSED SITE"));
if ((line=longline_create())==NULL) {
- debuga(_("Not enough memory to read file %s\n"),authfail_sort);
+ debuga(_("Not enough memory to read file \"%s\"\n"),authfail_sort);
exit(EXIT_FAILURE);
}
}
if ((line=longline_create())==NULL) {
- debuga(_("Not enough memory to read the log file %s\n"),arq);
+ debuga(_("Not enough memory to read file \"%s\"\n"),arq);
exit(EXIT_FAILURE);
}
}
if ((line=longline_create())==NULL) {
- debuga(_("Not enough memory to read the downloaded files.\n"));
+ debuga(_("Not enough memory to read file \"%s\"\n"),tmp3);
exit(EXIT_FAILURE);
}
fprintf(fp_ou,"<tr><th class=\"header_l\">%s</th><th class=\"header_l\">%s</th><th class=\"header_l\">%s</th><th class=\"header_l\">%s</th></tr>\n",_("USERID"),_("IP/NAME"),_("DATE/TIME"),_("ACCESSED SITE"));
if ((line=longline_create())==NULL) {
- debuga(_("Not enough memory to read the denied accesses\n"));
+ debuga(_("Not enough memory to read file \"%s\"\n"),denied_sort);
exit(EXIT_FAILURE);
}
fprintf(fp_ou,"<tr><th class=\"header_l\">%s</th><th class=\"header_l\">%s</th><th class=\"header_l\">%s</th><th class=\"header_l\">%s</th></tr>\n",_("USERID"),_("IP/NAME"),_("DATE/TIME"),_("ACCESSED SITE"));
if ((line=longline_create())==NULL) {
- debuga(_("Not enough memory to read the downloaded files\n"));
+ debuga(_("Not enough memory to read file \"%s\"\n"),report_in);
exit(EXIT_FAILURE);
}
totuser=0;
if ((line=longline_create())==NULL) {
- debuga(_("Not enough memory to read file %s\n"),wger);
+ debuga(_("Not enough memory to read file \"%s\"\n"),wger);
exit(EXIT_FAILURE);
}
have_denied_report=true;
if ((line=longline_create())==NULL) {
- debuga(_("Not enough memory to read file %s\n"),arqin);
+ debuga(_("Not enough memory to read file \"%s\"\n"),arqin);
exit(EXIT_FAILURE);
}
}
if ((line1=longline_create())==NULL) {
- debuga(_("Not enough memory to read file %s\n"),arqip);
+ debuga(_("Not enough memory to read file \"%s\"\n"),arqip);
exit(EXIT_FAILURE);
}
while((buf=longline_read(fp_ip,line1))!=NULL) {
olduserip[0]='\0';
if ((line1=longline_create())==NULL) {
- debuga(_("Not enough memory to read file %s\n"),arqip);
+ debuga(_("Not enough memory to read file \"%s\"\n"),arqip);
exit(EXIT_FAILURE);
}
while((buf=longline_read(fp_ip,line1))!=NULL) {
dir_allocated+=size;
dir_list=realloc(dir_list,dir_allocated);
if (!dir_list) {
- debuga(_("Not enough memory to recurse into subdirectory\n"));
+ debuga(_("Not enough memory to recurse into subdirectory \"%s\"\n"),path);
exit(EXIT_FAILURE);
}
}
}
if ((line=longline_create())==NULL) {
- debuga(_("Not enough memory to read log file %s\n"),arq);
+ debuga(_("Not enough memory to read file \"%s\"\n"),arq);
exit(EXIT_FAILURE);
}
init_usertab(UserTabFile);
LogLine_Init(&log_line);
- if ((line=longline_create())==NULL) {
- debuga(_("Not enough memory to read the log file\n"));
- exit(EXIT_FAILURE);
- }
-
/*
* Store one more entry to prepare the memory structure in place and reject it if
* it is about the same user and url as the last stored one.
debuga(_("Cannot open file \"%s\": %s\n"),file_name,strerror(errno));
exit(EXIT_FAILURE);
}
+
+ if ((line=longline_create())==NULL) {
+ debuga(_("Not enough memory to read file \"%s\"\n"),file_name);
+ exit(EXIT_FAILURE);
+ }
+
while((buf=longline_read(fp,line)) != NULL )
{
log_entry_status=LogLine_Parse(&log_line,&log_entry,buf);
}
if ((line=longline_create())==NULL) {
- debuga(_("Not enough memory to read the redirector log\n"));
+ debuga(_("Not enough memory to read file \"%s\"\n"),wentp);
exit(EXIT_FAILURE);
}
}
if ((line=longline_create())==NULL) {
- debuga(_("Not enough memory to read the processed redirector log\n"));
+ debuga(_("Not enough memory to read file \"%s\"\n"),redirector_sorted);
exit(EXIT_FAILURE);
}
oucache=0;
if ((line=longline_create())==NULL) {
- debuga(_("Not enough memory to read the downloaded files\n"));
+ debuga(_("Not enough memory to read file \"%s\"\n"),tmp3);
exit(EXIT_FAILURE);
}
topuser_link=((ReportType & REPORT_TYPE_USERS_SITES) != 0 && !indexonly);
if ((line=longline_create())==NULL) {
- debuga(_("Not enough memory to read file %s\n"),general2);
+ debuga(_("Not enough memory to read file \"%s\"\n"),general2);
exit(EXIT_FAILURE);
}
}
if ((line=longline_create())==NULL) {
- debuga(_("Not enough memory to read the log file %s\n"),arq);
+ debuga(_("Not enough memory to read file \"%s\"\n"),arq);
exit(EXIT_FAILURE);
}
time(&min_tt);
}
if ((line=longline_create())==NULL) {
- debuga(_("Not enough memory to read file %s\n"),general2);
+ debuga(_("Not enough memory to read file \"%s\"\n"),general2);
exit(EXIT_FAILURE);
}
ntopsites = 0;
if ((line=longline_create())==NULL) {
- debuga(_("Not enough memory to read file %s\n"),sites);
+ debuga(_("Not enough memory to read file \"%s\"\n"),sites);
exit(EXIT_FAILURE);
}
totuser=0;
if ((line=longline_create())==NULL) {
- debuga(_("Not enough memory to read the file %s\n"),wger);
+ debuga(_("Not enough memory to read file \"%s\"\n"),wger);
exit(EXIT_FAILURE);
}
ntopuser = 0;
if ((line=longline_create())==NULL) {
- debuga(_("Not enough memory to read the downloaded files\n"));
+ debuga(_("Not enough memory to read file \"%s\"\n"),top1);
exit(EXIT_FAILURE);
}
}
if ((line=longline_create())==NULL) {
- debuga(_("Not enough memory to read the host name aliases\n"));
+ debuga(_("Not enough memory to read file \"%s\"\n"),Filename);
exit(EXIT_FAILURE);
}
}
if ((line=longline_create())==NULL) {
- debuga(_("Not enough memory to read the user name aliases\n"));
+ debuga(_("Not enough memory to read file \"%s\"\n"),Filename);
exit(EXIT_FAILURE);
}