HomeFreeBSD

dhclient: fix time parsing for leases expiring after 2038

Description

dhclient: fix time parsing for leases expiring after 2038

Convert lease parsing to timegm to calculate timestamp. For reference, when
writing the lease, we use gmtime to convert the timestamp to struct tm.

Reviewed By: markj, vangyzen
MFC after: 2 weeks
Sponsored by: Dell EMC Isilon
Differential Revision: https://reviews.freebsd.org/D40760

Details

Provenance
alexander.bahm_dell.comAuthored on Jul 10 2023, 3:56 PM
vangyzenCommitted on Jul 10 2023, 4:00 PM
Reviewer
markj
Differential Revision
D40760: dhclient: fix time parsing for leases expiring after 2038
Parents
rG6c049996ec29: During F_SETFL, don't change file flags on error
Branches
Unknown
Tags
Unknown