Received: (qmail 28179 invoked from network); 17 Dec 1998 14:14:19 -0000 Message-Id: Date: Thu, 17 Dec 1998 06:18:52 -0800 (PST) From: Rick Franchuk To: apbugs@apache.org Subject: Defect in suEXEC with LOG_EXEC undefined >Number: 3547 >Category: suexec >Synopsis: Defect in suEXEC with LOG_EXEC undefined >Confidential: yes >Severity: serious >Priority: medium >Responsible: apache >State: closed >Class: sw-bug >Submitter-Id: unknown >Arrival-Date: Thu Dec 17 06:20:01 PST 1998 >Last-Modified: Thu Dec 17 08:17:30 PST 1998 >Originator: >Organization: >Release: >Environment: >Description: >How-To-Repeat: >Fix: >Audit-Trail: Responsible-Changed-From-To: gnats-admin-apache Responsible-Changed-By: marc Responsible-Changed-When: Thu Dec 17 08:14:21 PST 1998 Responsible-Changed-Why: Fixing misfiled PR. Please do NOT send mail to apbugs@apache.org to submit a PR, use the form on the web. Category-Changed-From-To: pending-suexec Category-Changed-By: marc Category-Changed-When: Thu Dec 17 08:14:21 PST 1998 State-Changed-From-To: open-closed State-Changed-By: marc State-Changed-When: Thu Dec 17 08:17:30 PST 1998 State-Changed-Why: Closing PR. Apparently it was also sent somewhere else so it was already committed without that person knowing it was sent here as well. >Unformatted: This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. Send mail to mime@docserver.cac.washington.edu for more info. --720384-1418115835-913904332=:3250 Content-Type: TEXT/PLAIN; charset=US-ASCII With LOG_EXEC commented out in suexec.h, I was getting 500 errors on every script execution (apache 1.3.3 under Linux - Redhat5.2 using Glibc2.0.7). I believe I've tracked down why. The following patch should remove the problem, which I believe comes from trying to fclose a NULL-value for 'log'. -- __________________________________________ | | | Rick Franchuk - TranSpecT Consulting | |_______ _______| \mailto:rickf@transpect.net/ \_____ICQ_#_4435025______/ --720384-1418115835-913904332=:3250 Content-Type: TEXT/PLAIN; charset=US-ASCII; name="suexec.patch" Content-Transfer-Encoding: BASE64 Content-ID: Content-Description: patch for suEXEC from 1.3.3 source LS0tIHN1ZXhlYy5jLm9sZAlUaHUgRGVjIDE3IDA1OjQyOjMxIDE5OTgNCisr KyBzdWV4ZWMuYwlUaHUgRGVjIDE3IDA1OjM4OjU1IDE5OTgNCkBAIC01MDIs NyArNTAyLDcgQEANCiAgICAgICogbWVzcyB3aXRoIGl0LiAgSWYgdGhlIGV4 ZWMgZmFpbHMsIGl0IHdpbGwgYmUgcmVvcGVuZWQgDQogICAgICAqIGF1dG9t YXRpY2FsbHkgd2hlbiBsb2dfZXJyIGlzIGNhbGxlZC4NCiAgICAgICovDQot ICAgIGZjbG9zZShsb2cpOw0KKyAgICBpZihsb2cpIGZjbG9zZShsb2cpOw0K ICAgICBsb2cgPSBOVUxMOw0KIA0KICAgICAvKg0K --720384-1418115835-913904332=:3250--