Page MenuHomeFreeBSD

tzcode: Fix time zone change detection.
ClosedPublic

Authored by des on Jul 18 2025, 10:05 AM.
Tags
None
Referenced Files
F156744400: D51405.id158729.diff
Sat, May 16, 1:45 AM
F156744376: D51405.id158729.diff
Sat, May 16, 1:45 AM
F156744364: D51405.id158753.diff
Sat, May 16, 1:45 AM
F156744266: D51405.diff
Sat, May 16, 1:44 AM
F156744232: D51405.diff
Sat, May 16, 1:44 AM
Unknown Object (File)
Wed, Apr 29, 11:03 AM
Unknown Object (File)
Tue, Apr 28, 1:46 PM
Unknown Object (File)
Mon, Apr 27, 10: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