From 01c698c958d339cfbc444d2d5f42f51f83275f2c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fr=C3=A9d=C3=A9ric=20Marchal?= Date: Thu, 27 Jan 2011 15:27:01 +0000 Subject: [PATCH] Don't try to produce the users's report if indexonly is set The creation of the users's report was failing when indexonly was set because the list of the users to process is taken from memory instead of collecting it from the files in the output directory. As no temporary file is created when indexonly is set, the output directory is empty but as the users's name are still stored in memory, sarg tried to read the non existant file and aborted. --- report.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/report.c b/report.c index 2f86740..1f8543f 100644 --- a/report.c +++ b/report.c @@ -375,7 +375,7 @@ void gerarel(void) squidguard_report(); - if((ReportType & REPORT_TYPE_USERS_SITES) != 0) htmlrel(); + if(!indexonly && (ReportType & REPORT_TYPE_USERS_SITES) != 0) htmlrel(); make_index(); -- 2.47.2