From owner-freebsd-bugs Sat Mar 1 19:06:56 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id TAA16007 for bugs-outgoing; Sat, 1 Mar 1997 19:06:56 -0800 (PST) Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.2.228.19]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id TAA16002 for ; Sat, 1 Mar 1997 19:06:52 -0800 (PST) Received: (from bde@localhost) by godzilla.zeta.org.au (8.8.3/8.6.9) id OAA05452; Sun, 2 Mar 1997 14:01:58 +1100 Date: Sun, 2 Mar 1997 14:01:58 +1100 From: Bruce Evans Message-Id: <199703020301.OAA05452@godzilla.zeta.org.au> To: henrich@crh.cl.msu.edu, peter@spinner.DIALix.COM Subject: Re: mail.local modifications? Cc: freebsd-bugs@FreeBSD.org, joerg_wunsch@uriah.heep.sax.de, mpp@freefall.freebsd.org Sender: owner-bugs@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk >I'd hate to throw fuel on the fire, but I'd prefer that we replaced the >mail.local sources with a .PATH to src/usr.sbin/sendmail/mail.local/*.. > >The change you describe is already present there (and has been for quite >some time), along with a number of other enhancements. Unfortunately, >there is some portability cruft in there, but at least it's being reasonably >actively maintained. It's also in Lite2. Berkeley ids for mail.local.c: -current: 8.6 Lite2: 8.22 sendmail: 8.34 All the versions make heavy work of restoring the original euid. The Lite2 and senddmail versions seem to miss restoring it in at least one case (when close(mfbd) fails). The easiest way to restore it is to use seteuid(0) after deliver(). Bruce