Page MenuHomeFreeBSD

tzcode: Fix time zone change detection.
ClosedPublic

Authored by des on Jul 18 2025, 10:05 AM.
Tags
None
Referenced Files
F144338328: D51405.id158729.diff
Sat, Feb 7, 10:26 PM
F144316703: D51405.id158753.diff
Sat, Feb 7, 7:43 PM
Unknown Object (File)
Sun, Feb 1, 8:54 AM
Unknown Object (File)
Sun, Feb 1, 8:43 AM
Unknown Object (File)
Sun, Feb 1, 8:31 AM
Unknown Object (File)
Sat, Jan 31, 1:26 AM
Unknown Object (File)
Fri, Jan 30, 9:23 PM
Unknown Object (File)
Tue, Jan 27, 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