when enqueueing offline mails from within the daemon session, we should not
authorgilles <gilles@openbsd.org>
Thu, 15 Jan 2015 09:05:37 +0000 (09:05 +0000)
committergilles <gilles@openbsd.org>
Thu, 15 Jan 2015 09:05:37 +0000 (09:05 +0000)
commit2a157de52c48eeb47f26443c07ed77273f35729d
treec95d1632dd0b59746a8a01f74998c9bf09f58587
parentcbee1b7af69587a2e09981d1dc5eb713369e5610
when enqueueing offline mails from within the daemon session, we should not
rely on getlogin() otherwise mail will end up enqueued as coming from user
who started smtpd.

bug spotted by deraadt@, diff ok todd@
usr.sbin/smtpd/enqueue.c
usr.sbin/smtpd/smtpd.c