diff -ur thttpd-2.23beta1/libhttpd.c thttpd-2.23beta1-guts/libhttpd.c --- thttpd-2.23beta1/libhttpd.c Fri Sep 26 17:04:20 2003 +++ thttpd-2.23beta1-guts/libhttpd.c Fri Sep 26 17:02:16 2003 @@ -3764,7 +3764,7 @@ ** trying to either serve or run a non-CGI file as CGI. Either case ** is prohibited. */ - if ( hc->sb.st_mode & S_IXOTH ) + if ( (hc->hs->cgi_pattern != (char*) 0) && (hc->sb.st_mode & S_IXOTH) ) { syslog( LOG_NOTICE, "%.80s URL \"%.80s\" is executable but isn't CGI",