From: Frédéric Marchal Date: Thu, 27 Aug 2009 13:49:58 +0000 (+0000) Subject: Changed default directory for the squid access.log. X-Git-Tag: v2_2_6~34 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a96e796dac0ab1c115af25f6c26cc76851c233e2;p=thirdparty%2Fsarg.git Changed default directory for the squid access.log. --- diff --git a/convlog.c b/convlog.c index 5387af3..34ebd42 100644 --- a/convlog.c +++ b/convlog.c @@ -40,7 +40,7 @@ void convlog(const char *arq, char *df, int dfrom, int duntil) struct tm *t; if(arq[0] == '\0') - arq="/usr/local/squid/logs/access.log"; + arq="/var/log/squid/access.log"; if((fp_in=MY_FOPEN(arq,"r"))==NULL) { fprintf(stderr, "SARG: (convlog) %s: %s\n",text[8],arq); diff --git a/sarg.1 b/sarg.1 index 10250e6..d78ae26 100644 --- a/sarg.1 +++ b/sarg.1 @@ -133,7 +133,7 @@ Split the log file by date in \fB-d\fP parameter. .SH FILES .BR /usr/local/sarg/sarg.conf .br -.B /usr/local/squid/logs/access.log +.B /var/log/squid/access.log .br .B /usr/local/squidGuard/logs/squidGuard.log .SH SEE ALSO diff --git a/splitlog.c b/splitlog.c index 96ba1a0..155c830 100644 --- a/splitlog.c +++ b/splitlog.c @@ -40,7 +40,7 @@ void splitlog(const char *arq, char *df, int dfrom, int duntil, char *convert) struct tm *t; if(arq[0] == '\0') - arq="/usr/local/squid/logs/access.log"; + arq="/var/log/squid/access.log"; if((fp_in=MY_FOPEN(arq,"r"))==NULL) { fprintf(stderr, "SARG: (splitlog) %s: %s\n",text[8],arq);