From a96e796dac0ab1c115af25f6c26cc76851c233e2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fr=C3=A9d=C3=A9ric=20Marchal?= Date: Thu, 27 Aug 2009 13:49:58 +0000 Subject: [PATCH] Changed default directory for the squid access.log. --- convlog.c | 2 +- sarg.1 | 2 +- splitlog.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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); -- 2.47.2