Page MenuHomeFreeBSD

tzcode: Add a test case for plain issetugid case
ClosedPublic

Authored by des on Aug 29 2025, 4:09 PM.
Tags
None
Referenced Files
F135680206: D52241.diff
Tue, Nov 11, 8:25 PM
Unknown Object (File)
Mon, Nov 3, 6:04 PM
Unknown Object (File)
Mon, Oct 27, 4:44 PM
Unknown Object (File)
Sat, Oct 25, 6:50 PM
Unknown Object (File)
Tue, Oct 21, 9:10 PM
Unknown Object (File)
Oct 11 2025, 12:07 AM
Unknown Object (File)
Oct 10 2025, 5:40 PM
Unknown Object (File)
Oct 10 2025, 5:40 PM
Subscribers

Details

Summary

This catches a bug in tzcode which incorrectly considers TZDEFAULT as
unsafe as if it came from the environment.

Also deduplicate some repeated code, and fix a missing mode in an
open(2) call with O_CREAT set.

Event: Oslo Hackathon 202508

Diff Detail

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

Event Timeline

des requested review of this revision.Aug 29 2025, 4:09 PM

Hmm...

  • Check failed: /home/philip/freebsd/src/lib/libc/tests/stdtime/detect_tz_changes_test.c:96: expect != buf (-0700 (PDT) != +0000 (-00))

Hmm...

  • Check failed: /home/philip/freebsd/src/lib/libc/tests/stdtime/detect_tz_changes_test.c:96: expect != buf (-0700 (PDT) != +0000 (-00))

Yes, the test successfully demonstrated that your libc has the bug fixed by D52240.

Hah. I forgot I did a previous installworld after reviewing D52240. I am not smart.
This looks good. And the test passes with the D52240 applied.

This revision is now accepted and ready to land.Aug 31 2025, 11:48 PM
This revision was automatically updated to reflect the committed changes.