Page MenuHomeFreeBSD

tzcode: Fix time zone change detection.
ClosedPublic

Authored by des on Jul 18 2025, 10:05 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Oct 10, 4:00 AM
Unknown Object (File)
Fri, Oct 10, 4:00 AM
Unknown Object (File)
Fri, Oct 10, 4:00 AM
Unknown Object (File)
Thu, Oct 9, 10:46 PM
Unknown Object (File)
Sat, Sep 13, 2:29 AM
Unknown Object (File)
Sep 12 2025, 11:20 AM
Unknown Object (File)
Sep 12 2025, 2:18 AM
Unknown Object (File)
Sep 11 2025, 4:21 PM
Subscribers

Details

Summary

Prior to the 2022g import, tzloadbody() returned -1 on error. Now it
returns an errno code. When I updated the time zone change detection
logic to match, I improperly returned errno in all cases, which means
that if the time zone file has not changed since we last loaded it,
tzloadbody() returns a random errno value instead of 0.

Fixes: bc42155199b5
MFC after: 1 week
Sponsored by: Klara, Inc.
Sponsored by: NetApp, Inc.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable