SET(sarg_VERSION 2)
SET(sarg_REVISION 2)
SET(sarg_BUILD "7")
-SET(sarg_BUILDDATE "Feb-04-2010")
+SET(sarg_BUILDDATE "Feb-05-2010")
INCLUDE(AddFileDependencies)
INCLUDE(CheckIncludeFile)
SARG ChangeLog
-Feb-04-2010 Version 2.2.7
+Feb-05-2010 Version 2.2.7
- Extra compile and run time protection (FORTIFY_SOURCE) fixed in configure.
- Use tabulations as columns separator in intermediary files to avoid problems when a field of the log contains a space.
- Input log file type detection partly rewritten to clearly distinguish which type is processed where.
- Mangle the $ and @ signs in user ID to make the resulting file name valid in shell commands.
- Fixed a regression in the default value of --enable-sargphp.
- Increase the maximum size of a line read from access.log and detect longer lines that were silently splitted in previous versions.
+ - Tolerate longer URLs during the reading of the access.log to have less chances of aborting during that phase. It only helps if short URLs are output in the reports. If long_url is set, sarg will still abort on over sized URLs.
Jan-06-2010 Version 2.2.6.1
- Remove unnecessary dependency on off_t.
char user[MAXLEN], code1[255], code2[255];
char ip[30];
char wdata[127];
+ char url[MAXLEN];
+ char urly[MAXLEN];
int idata=0;
int cstatus;
struct getwordstruct gwarea;
FILE *fp_in = NULL, *fp_ou = NULL;
- char url[MAXLEN];
+ char url[2*MAXLEN];
char report_in[MAXLEN];
char wdirname[MAXLEN];
char report[MAXLEN];
continue;
}
- for (i=strlen(url)-1 ; i>=0 && (unsigned char)url[i]<' ' ; i--) url[i]=0;
+ for (i=strlen(url)-1 ; i>=0 && (unsigned char)url[i]<' ' ; i--) url[i]='\0';
fprintf(fp_ou,"<tr><td class=\"data\">%s</td><td class=\"data\">%s</td><td class=\"data\">%s-%s</td><td class=\"data2\">",name,ip,data,hora);
if(BlockIt[0]!='\0')
char outdir[MAXLEN];
char dirname[MAXLEN];
char buf[MAXLEN];
-char url[MAXLEN];
-char urly[MAXLEN];
char user[MAXLEN];
char period[MAXLEN];
char msg[1024];
-#define VERSION PACKAGE_VERSION" Feb-04-2010"
+#define VERSION PACKAGE_VERSION" Feb-05-2010"
#define PGM PACKAGE_NAME
#define URL "http://sarg.sourceforge.net"
char tbuf2[128];
char zip[20];
char *str;
- char bufz[2*MAXLEN];
+ char bufz[2*MAXLEN+1000];
+ char url[2*MAXLEN];
+ char urly[2*MAXLEN];
char tmp2[MAXLEN];
char start_hour[128];
char end_hour[128];
unsigned long recs2=0UL;
int OutputNonZero = REPORT_EVERY_X_LINES ;
int download_flag=0;
- char download_url[MAXLEN];
+ char download_url[2*MAXLEN];
char sz_Last_User[MAXLEN]="";
struct getwordstruct gwarea;
struct tm *t;
char tbuf[128];
char warea[MAXLEN];
+ char url[MAXLEN];
struct getwordstruct gwarea;
getword_start(&gwarea,rec);
{
FILE *fin;
char buf[MAXLEN];
+ char url[MAXLEN];
struct getwordstruct gwarea;
if((fin=fopen(tmp,"r"))==NULL) {
char mon[10], hour[15];
char list[MAXLEN];
char wdata[127];
+ char url[MAXLEN];
+ char urly[MAXLEN];
int idata=0;
int i;
char *str;
char href1end[5];
char href2end[5];
char href3end[5];
+ char url[MAXLEN];
struct getwordstruct gwarea;
ipantes[0]='\0';