Changeset 2162

Show
Ignore:
Timestamp:
04/29/2008 08:59:18 PM (2 weeks ago)
Author:
stbuehler
Message:

Disable logging to access.log if filename is an empty string

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/lighttpd-1.4.x/NEWS

    r2161 r2162  
    2424  * Remove lighttpd.spec* from source, fixing all problems with it ;-) 
    2525  * Do not rely on PATH_MAX (POSIX does not require it) (#580) 
     26  * Disable logging to access.log if filename is an empty string 
    2627 
    2728- 1.4.19 - 2008-03-10 
  • branches/lighttpd-1.4.x/src/mod_accesslog.c

    r2149 r2162  
    474474                } 
    475475 
    476                 if (buffer_is_empty(s->access_logfile)) continue; 
     476                if (s->access_logfile->used < 2) continue; 
    477477 
    478478                if (s->access_logfile->ptr[0] == '|') { 
     
    571571 
    572572                if (s->use_syslog == 0 && 
    573                     !buffer_is_empty(s->access_logfile) && 
     573                    s->access_logfile->used > 1 && 
    574574                    s->access_logfile->ptr[0] != '|') { 
    575575 
     
    648648        mod_accesslog_patch_connection(srv, con, p); 
    649649 
     650        /* No output device, nothing to do */ 
     651        if (!p->conf.use_syslog && p->conf.log_access_fd == -1) return HANDLER_GO_ON; 
     652 
    650653        b = p->conf.access_logbuffer; 
    651654        if (b->used == 0) {