On Wed, 12 May 1999, Lars Uffmann wrote:

> Balazs Nagy wrote:
> > 
> > This tcpserver opens stderr to print its log messages and opens a pipe to
> > stdin-stdout for qmail-popup's connection.  In fact there isn't a way to do
> > logging right now.
> 
> Try commenting out line 91 in qmail-popup.c:
> 
>      91   /* if (fd_copy(2,1) == -1) die_pipe(); */

Why DJB put this line in? If you run this program from command line, 0,1,2
are open.  If you run from inetd, it dups 2 and 1 fom 0 (eg. 2 is alive). 
Tcpserver does a good emulation of command line.  I don't know why this line
exists in the code.

> Now checkpasswords and qmail-pop3d's SDTERR should go where tcpservers
> STDERR goes. Set a environment variable in qmail-popup, say LOGID to
> provide a session wide unique tag to use in the popup -> checkpassword ->
> pop3d pipeline.

Sounds reasonable.

Error catch points:
        login, stat, commands: qmail-pop3d
        bad passwords: checkpassword
-- 
Regards: Kevin (Balazs)

Reply via email to