OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Subject: Re: Re[4]: PATCH: sendmail compatibility: '.' as end of input
From: Wietse Venema (wietseporcupine.org)
Date: Mon Mar 13 2000 - 13:55:27 CST


I suppose you could modify sendmail to close all descriptors > 2,
before it calls any other routine.

    { int i; for (i = 3; i < 100; i++) (void) close(i); }

If that makes things work, then dtcm is yet another example of
software that works by coincidence, rather than by design.

        Wietse

Kurt Andersen:
> wietseporcupine.org (Wietse Venema) wrote:
> > You might want to temporarily replace /usr/lib/sendmail by a script
> > that echoes arguments and input to the syslog daemon:
> >
> > #!/bin/sh
> >
> > /some/where/logger -p mail.info -t faux-sendmail args: $*
> > /some/where/logger -p mail.info -t faux-sendmail
> >
> > Wietse
>
> Here are the results:
>
> Mar 13 10:45:00 pacific faux-sendmail: To: kurtaspk.agilent.com
> Mar 13 10:45:00 pacific faux-sendmail: Subject: Reminder- test 3
> Mar 13 10:45:00 pacific faux-sendmail: Mime-Version: 1.0
> Mar 13 10:45:00 pacific faux-sendmail: Content-Type: text/plain;charset=us-ascii
> Mar 13 10:45:00 pacific faux-sendmail:
> Mar 13 10:45:00 pacific last message repeated 2 times
> Mar 13 10:45:00 pacific faux-sendmail: ^I** Calendar Appointment **
> Mar 13 10:45:00 pacific faux-sendmail:
> Mar 13 10:45:00 pacific faux-sendmail: ^IDate:^I03/13/2000
> Mar 13 10:45:00 pacific faux-sendmail: ^IStart:^I1050
> Mar 13 10:45:00 pacific faux-sendmail: ^IEnd:^I1145
> Mar 13 10:45:00 pacific faux-sendmail: ^IWhat:^Itest 3
>
> I actually put a slightly more sophisticated PERL script in to observe
> any signals that might be sent out of band but nothing showed up.
>
> I am mystified as to how dtcm expects this child process to go away, but
> it worked with sendmail 8.9.3 and earlier...
>
> --Kurt
>
>
> --
> Kurt Andersen <kurtaspk.agilent.com>
> Agilent Technologies, Spokane -- UNIX/Network Support Team (UST)
> Information Technology Department (509) 921-3792
>
>