From: Frédéric Marchal Date: Sat, 1 Aug 2009 20:48:34 +0000 (+0000) Subject: Fixed bug #2216451. X-Git-Tag: v2_2_6~45 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b6d3adea6f3ed733810979fecb1b67997dd05e11;p=thirdparty%2Fsarg.git Fixed bug #2216451. --- diff --git a/report.c b/report.c index eefc614..28c987a 100644 --- a/report.c +++ b/report.c @@ -94,7 +94,7 @@ void gerarel(void) fprintf(stderr, "SARG: (report) directory entry too long: %s/%s\n",tmp,direntp->d_name); exit(1); } - if((fp_in=fopen(tmp3,"r"))==NULL){ + if((fp_in=MY_FOPEN(tmp3,"r"))==NULL){ fprintf(stderr, "SARG: (report) %s: %s\n",text[45],tmp); exit(1); } @@ -447,7 +447,7 @@ void gravatmp(const char *oldaccuser, const char *dirname, const char *oldurl, l strcat(wdirname,oldaccuser); strcat(wdirname,".utmp"); - if((fp_ou=fopen(wdirname,"a"))==NULL){ + if((fp_ou=MY_FOPEN(wdirname,"a"))==NULL){ fprintf(stderr, "SARG: (report) %s: %s\n",text[45],wdirname); exit(1); } @@ -486,7 +486,7 @@ static void gravatmp_hora(const char *dirname, const char *user, const char *dat strcat(wdirname,user); strcat(wdirname,".htmp"); - if((fp_ou=fopen(wdirname,"a"))==NULL){ + if((fp_ou=MY_FOPEN(wdirname,"a"))==NULL){ fprintf(stderr, "SARG: (report-2) %s: %s - %s\n",text[45],wdirname,strerror(errno)); exit(1); } @@ -514,7 +514,7 @@ static void gravaporuser(const char *user, const char *dirname, const char *url, strcat(wdirname,user); strcat(wdirname,".ip"); - if((fp_ou=fopen(wdirname,"a"))==NULL){ + if((fp_ou=MY_FOPEN(wdirname,"a"))==NULL){ fprintf(stderr, "SARG: (report) %s: %s\n",text[45],wdirname); exit(1); } @@ -542,7 +542,7 @@ static void gravatmpf(const char *oldaccuser, const char *dirname, const char *o strcat(wdirname,oldaccuser); strcat(wdirname,".utmp"); - if((fp_ou=fopen(wdirname,"a"))==NULL){ + if((fp_ou=MY_FOPEN(wdirname,"a"))==NULL){ fprintf(stderr, "SARG: (report) %s: %s\n",text[45],wdirname); exit(1); } @@ -577,7 +577,7 @@ static void gravager(char *dirname, const char *user, long long int nacc, const strcat(dirname,"/"); strcat(dirname,"sarg-general"); - if((fp_ou=fopen(dirname,"a"))==NULL){ + if((fp_ou=MY_FOPEN(dirname,"a"))==NULL){ fprintf(stderr, "SARG: (report) %s: %s\n",text[45],dirname); exit(1); } @@ -603,7 +603,7 @@ static void grava_SmartFilter(const char *dirname, const char *user, const char sprintf(wdirname,"%s/smartfilter.unsort",dirname); - if((fp_ou=fopen(wdirname,"a"))==NULL){ + if((fp_ou=MY_FOPEN(wdirname,"a"))==NULL){ fprintf(stderr, "SARG: (report) %s: %s\n",text[45],wdirname); exit(1); }