CVSROOT:        /cvs
Module name:    ports
Changes by:     [email protected]    2019/02/21 12:22:27

Modified files:
        mail/isync     : Makefile 
        mail/isync/patches: patch-src_drv_imap_c 

Log message:
Fix CopyArrivalDate for timestamps with single digit day of the month

On timestamps such as " 4-Mar-2018 16:49:25 -0500", mbsync would abort if
the Channel option `CopyArrivalDate' was set.

The IMAP protocol specifies a date format beginning with a day-of-month
space-padded to two characters.  The "%d" specifier in glibc's strptime(3)
will consume a space-padded day of month, but OpenBSD's "%d" only accepts
leading zeroes.

Prodded by this issue, our strptime(3) now strips leading spaces with "%e"
as of lib/libc/time/strptime.c r1.25.

Found, analysed and patch (using "%n%d" instead of "%e") from
Evan Silberman <evan at jklol dot net>, thanks!

Reply via email to