sprintf ( sz_Download_Unsort , "%s/sarg/download.unsort", tmp);
bool_ShowReadStatistics = ( strcmp(ShowReadStatistics,"yes") == 0 ) ;
+ if(strstr(ReportType,"denied") != 0) {
+ if((fp_denied=MY_FOPEN(tmp4,"w"))==NULL) {
+ fprintf(stderr, "%s: (log) %s: %s - %s\n",argv[0],text[45],tmp4,strerror(errno));
+ exit(1);
+ }
+ }
+
+ if(DataFile[0]=='\0') {
+ if(strstr(ReportType,"denied") != 0 || strstr(ReportType,"auth_failures") != 0) {
+ if((fp_authfail=MY_FOPEN(tmp6,"w"))==NULL) {
+ fprintf(stderr, "%s: (log) %s: %s - %s\n",argv[0],text[45],tmp6,strerror(errno));
+ exit(1);
+ }
+ }
+ }
+
while(narq--) {
strcpy(arq,warq[iarq]);
iarq++;
fputs("*** SARG Log ***\n",fp_log);
}
- if(strstr(ReportType,"denied") != 0) {
- if((fp_denied=MY_FOPEN(tmp4,"w"))==NULL) {
- fprintf(stderr, "%s: (log) %s: %s - %s\n",argv[0],text[45],tmp4,strerror(errno));
- exit(1);
- }
- }
-
- if(DataFile[0]=='\0') {
- if(strstr(ReportType,"denied") != 0 || strstr(ReportType,"auth_failures") != 0) {
- if((fp_authfail=MY_FOPEN(tmp6,"w"))==NULL) {
- fprintf(stderr, "%s: (log) %s: %s - %s\n",argv[0],text[45],tmp6,strerror(errno));
- exit(1);
- }
- }
- }
-
// pre-Read the file only if I have to show stats
if(bool_ShowReadStatistics) {
rewind(fp_in);