>Number: 1212
>Category: general
>Synopsis: htpasswd does not return a meaningful exit code if everything
>works ok
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: apache (Apache HTTP Project)
>State: open
>Class: change-request
>Submitter-Id: apache
>Arrival-Date: Wed Oct 8 05:10:01 1997
>Originator: [EMAIL PROTECTED]
>Organization:
apache
>Release: 1.2.4
>Environment:
SunOS 5.5.1
>Description:
htpasswd does not return a meaningful exit code if everything works ok, so it
is pretty hard to destinguish between success and failure.
A statement return(0) or exit(0) as the very last statement would be great.
>How-To-Repeat:
>Fix:
include a return(0) or exit(0) as the very last statemen
>Audit-Trail:
>Unformatted:
Received: (qmail 17109 invoked by uid 6000); 9 Oct 1997 10:59:37 -0000
Received: (qmail 24617 invoked by uid 2001); 9 Oct 1997 10:50:02 -0000
Received:(from [EMAIL PROTECTED])
by hyperreal.org (8.8.5/8.8.5) id SAA21920;
Wed, 8 Oct 1997 18:49:29 -0700 (PDT)
Message-Id:<[EMAIL PROTECTED]>
Date:Wed, 8 Oct 1997 18:49:29 -0700 (PDT)
From: Garry Shtern <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
X-Send-Pr-Version:3.2
Subject: general/1213: forking in cgi produces duplicate invocation of the
script
Sender: [EMAIL PROTECTED]
Precedence: bulk
>Number: 1213
>Category: general
>Synopsis: forking in cgi produces duplicate invocation of the script
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: apache
>State: open
>Class: sw-bug
>Submitter-Id: apache
>Arrival-Date: Thu Oct 9 03:50:02 PDT 1997
>Last-Modified:
>Originator: [EMAIL PROTECTED]
>Organization:
apache
>Release: 1.2.4
>Environment:
Linux vader 2.0.31 #12 Tue Sep 30 01:46:24 EDT 1997 i686
>Description:
If I try forking within a cgi (perl script), the output displayed from the
script indicates that the cgi was executed twice.
However, removing the forking solves the problem. Down/Upgraded the perl.
Problem still persists.
Script works fine from a command prompt.
>How-To-Repeat:
write a little perl script that forks and have child perform a task such as
email back a user, and parent display an html. The output will indicate that
the script was invoked twice. Beware NS4 crashes in this case
>Fix:
>Audit-Trail:
>Unformatted:
Received: (qmail 17137 invoked by uid 6000); 9 Oct 1997 10:59:40 -0000
Received: (qmail 24617 invoked by uid 2001); 9 Oct 1997 10:50:02 -0000
Received:(from [EMAIL PROTECTED])
by hyperreal.org (8.8.5/8.8.5) id SAA21920;
Wed, 8 Oct 1997 18:49:29 -0700 (PDT)
Message-Id:<[EMAIL PROTECTED]>
Date:Wed, 8 Oct 1997 18:49:29 -0700 (PDT)
From: Garry Shtern <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
X-Send-Pr-Version:3.2
Subject: general/1213: forking in cgi produces duplicate invocation of the
script
Sender: [EMAIL PROTECTED]
Precedence: bulk
>Number: 1213
>Category: general
>Synopsis: forking in cgi produces duplicate invocation of the script
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: apache
>State: open
>Class: sw-bug
>Submitter-Id: apache
>Arrival-Date: Thu Oct 9 03:50:02 PDT 1997
>Last-Modified:
>Originator: [EMAIL PROTECTED]
>Organization:
apache
>Release: 1.2.4
>Environment:
Linux vader 2.0.31 #12 Tue Sep 30 01:46:24 EDT 1997 i686
>Description:
If I try forking within a cgi (perl script), the output displayed from the
script indicates that the cgi was executed twice.
However, removing the forking solves the problem. Down/Upgraded the perl.
Problem still persists.
Script works fine from a command prompt.
>How-To-Repeat:
write a little perl script that forks and have child perform a task such as
email back a user, and parent display an html. The output will indicate that
the script was invoked twice. Beware NS4 crashes in this case
>Fix:
>Audit-Trail:
>Unformatted:
Received: (qmail 10402 invoked by uid 6000); 9 Oct 1997 13:35:21 -0000
Received: (qmail 10376 invoked by uid 149); 9 Oct 1997 13:35:18 -0000
Date: 9 Oct 1997 13:35:18 -0000
Message-ID: <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED]
From: [EMAIL PROTECTED]
Subject: Re: general/1213
Sender: [EMAIL PROTECTED]
Precedence: bulk
Synopsis: forking in cgi produces duplicate invocation of the script
State-Changed-From-To: open-closed
State-Changed-By: marc
State-Changed-When: Thu Oct 9 06:33:38 PDT 1997
State-Changed-Why:
This is a bug in your script. Please read all the big notices posted before
submitting a PR; this has nothing to do with Apache.
Somewhere your script has a bug in it. It may not be flushing output
before forking, it may not be properly closing stdout in the child.
Post to comp.infosystems.www.authoring.cgi and perhaps someone can help
you. We don't have time to help everyone write their CGIs.