From 246507705452506a0fbff4ffa42c500a93bbecbd Mon Sep 17 00:00:00 2001 From: Frederic Marchal Date: Thu, 12 Nov 2015 15:27:40 +0100 Subject: [PATCH] Split can uncompress compressed log files to split Thanks to Evgeniy Yakushev for suggesting that idea. --- splitlog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/splitlog.c b/splitlog.c index 0816e03..3e8d40c 100644 --- a/splitlog.c +++ b/splitlog.c @@ -79,7 +79,7 @@ void splitlog(const char *arq, char df, int dfrom, int duntil, int convert, cons if(arq[0] == '\0') arq="/var/log/squid/access.log"; - if((fp_in=FileObject_Open(arq))==NULL) { + if((fp_in=decomp(arq))==NULL) { debuga(__FILE__,__LINE__,_("Cannot open file \"%s\": %s\n"),arq,FileObject_GetLastOpenError()); exit(EXIT_FAILURE); } -- 2.47.2