Changeset 35

Show
Ignore:
Timestamp:
02/20/2005 07:05:55 PM (4 years ago)
Author:
jan
Message:

allow empty cgi.assign handler

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/mod_cgi.c

    r32 r35  
    691691#ifndef __WIN32  
    692692         
    693         /* stat the exec file */ 
    694         if (-1 == (stat(cgi_handler->ptr, &st))) { 
    695                 log_error_write(srv, __FILE__, __LINE__, "sbss",  
    696                                 "stat for cgi-handler", cgi_handler, 
    697                                 "failed:", strerror(errno)); 
    698                 return -1; 
     693        if (cgi_handler->used > 1) { 
     694                /* stat the exec file */ 
     695                if (-1 == (stat(cgi_handler->ptr, &st))) { 
     696                        log_error_write(srv, __FILE__, __LINE__, "sbss",  
     697                                        "stat for cgi-handler", cgi_handler, 
     698                                        "failed:", strerror(errno)); 
     699                        return -1; 
     700                } 
    699701        } 
    700702