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)
Feb 7 2026, 10:26 PM
Unknown Object (File)
Feb 7 2026, 7:43 PM
Unknown Object (File)
Feb 1 2026, 8:54 AM
Unknown Object (File)
Feb 1 2026, 8:43 AM
Unknown Object (File)
Feb 1 2026, 8:31 AM
Unknown Object (File)
Jan 31 2026, 1:26 AM
Unknown Object (File)
Jan 30 2026, 9:23 PM
Unknown Object (File)
Jan 27 2026, 11:29 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