Date: Sat, 12 Feb 2005 16:54:00 +0100 (CET) From: Hendrik Scholz <hendrik@scholz.net> To: FreeBSD-gnats-submit@FreeBSD.org Cc: Hendrik Scholz <hendrik@scholz.net> Subject: ports/77418: maintainer-update: www/lighttpd: cgi.c config file fix Message-ID: <20050212155400.226704C706@mail.wormulon.net> Resent-Message-ID: <200502121600.j1CG0eDO056160@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 77418 >Category: ports >Synopsis: maintainer-update: www/lighttpd: cgi.c config file fix >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Sat Feb 12 16:00:40 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Hendrik Scholz >Release: FreeBSD 5.2.1-RELEASE-p9 i386 >Organization: >Environment: System: FreeBSD plant.wormulon.net 5.2.1-RELEASE-p9 FreeBSD 5.2.1-RELEASE-p9 #0: Fri Aug 13 11:32:22 CEST 2004 hscholz@h2012.ka.strato.de:/usr/src/sys/i386/compile/PLANT i386 >Description: The files/patch-src::cgi.c patch has been retrieved from http://wiki.lighttpd.net/7.html#A14 and http://cvs.pld-linux.org/cgi-bin/cvsweb/SOURCES/lighttpd-empty_cgi_handler.patch?rev=1.1 The patch fixes a CGI handler bug in the config file. Bump PORTREVISON while we are here. >How-To-Repeat: >Fix: --- lighttpd-1.3.10-cgi.c.diff begins here --- =================================================================== RCS file: /home/ncvs/ports/www/lighttpd/Makefile,v retrieving revision 1.12 diff -u -u -r1.12 Makefile --- Makefile 7 Feb 2005 14:05:35 -0000 1.12 +++ Makefile 12 Feb 2005 15:47:09 -0000 @@ -7,6 +7,7 @@ PORTNAME= lighttpd PORTVERSION= 1.3.10 +PORTREVISION= 1 CATEGORIES= www MASTER_SITES= http://www.lighttpd.net/download/ \ http://dl.fkb.wormulon.net/lighttpd/ \ --- ./src/cgi.c~ 2005-02-08 00:08:01.000000000 +0200 +++ ./src/cgi.c 2005-02-08 00:13:02.000000000 +0200 @@ -686,16 +686,18 @@ int to_cgi_fds[2]; int from_cgi_fds[2]; - struct stat st; - + #ifndef __WIN32 + struct stat st; - /* stat the exec file */ - if (-1 == (stat(cgi_handler->ptr, &st))) { - log_error_write(srv, __FILE__, __LINE__, "sbss", - "stat for cgi-handler", cgi_handler, - "failed:", strerror(errno)); - return -1; + if (cgi_handler->used > 1) { + /* stat the exec file */ + if (-1 == (stat(cgi_handler->ptr, &st))) { + log_error_write(srv, __FILE__, __LINE__, "sbss", + "stat for cgi-handler", cgi_handler, + "failed:", strerror(errno)); + return -1; + } } if (pipe(to_cgi_fds)) { --- lighttpd-1.3.10-cgi.c.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050212155400.226704C706>