On Fri, Nov 04, 2022 at 12:51:17PM -0400, Stuart D Gathman wrote:
> On Thu, 3 Nov 2022, Nils wrote:
> 
> > The problem is probably Void Linux specific, since I don't have this
> > problem on a OpenBSD installation.
> 
> > P.S.: This is a cross-post of 
> > https://github.com/void-linux/void-packages/issues/39918
> 
> I did some research and reported on the github issue.
> 
> Summary:
> 
> The Received header field should use -0000, not +0000 when localtime is
> not actually UTC.  But Received should not necessarily be in localtime.
> 
The following diff creates Received headers with -0000 values.
 Cheers
  Giovanni

Index: to.c
===================================================================
RCS file: /cvs/src/usr.sbin/smtpd/to.c,v
retrieving revision 1.48
diff -u -p -r1.48 to.c
--- to.c        14 Jun 2021 17:58:16 -0000      1.48
+++ to.c        4 Nov 2022 17:30:11 -0000
@@ -159,7 +159,7 @@ time_to_text(time_t when)
            day[lt->tm_wday], lt->tm_mday, month[lt->tm_mon],
            lt->tm_year + 1900,
            lt->tm_hour, lt->tm_min, lt->tm_sec,
-           offset >= 0 ? '+' : '-',
+           offset > 0 ? '+' : '-',
            abs((int)offset / 3600),
            abs((int)offset % 3600) / 60,
            tz))

Attachment: signature.asc
Description: PGP signature

Reply via email to