pkgsrc-wip/sarg/patches/patch-ag

13 lines
434 B
Text

$NetBSD: patch-ag,v 1.5 2006/04/25 10:08:28 bubuchka Exp $
--- splitlog.c.orig 2005-08-05 01:34:58.000000000 +0300
+++ splitlog.c
@@ -39,7 +39,7 @@ void splitlog(char *arq, char *df, int d
struct tm *t;
if(arq[0] == '\0')
- strcpy(arq,"/usr/local/squid/logs/access.log");
+ strcpy(arq,"@SQUID_ACCESSLOG@");
if((fp_in=fopen(arq,"r"))==NULL) {
fprintf(stderr, "SARG: (splitlog) %s: %s\n",text[8],arq);