]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r269550:
authorngie <ngie@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 19 Jul 2017 20:29:07 +0000 (20:29 +0000)
committerngie <ngie@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 19 Jul 2017 20:29:07 +0000 (20:29 +0000)
commit0e653ffc6ab98c7351f50e511206213cdf47d6b5
tree3d01f4691a7ee4bec62a88e76ee807dc7c167bb8
parent3e013a1d41e3a7409c76bb86824a801dd26f09f7
MFC r269550:
r269550 (by peter):

Check gethostname(2) return code - but even if it succeeds it may not
null terminate.

Temporarily use "From: $user@$hostname" rather than "From: $user".
The latter exposes incompatible behavior if using dma(8).  sendmail(8)
(and other alternatives) canonify either form on submission (even
if masquerading), but dma will leak a non-compliant address to
the internet.

git-svn-id: svn://svn.freebsd.org/base/stable/10@321244 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
usr.sbin/cron/cron/do_command.c