Page MenuHomeFreeBSD

tzcode: Fix TZ for non-setugid programs
ClosedPublic

Authored by des on Aug 22 2025, 12:36 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Oct 10, 9:47 PM
Unknown Object (File)
Fri, Oct 10, 9:47 PM
Unknown Object (File)
Fri, Oct 10, 9:47 PM
Unknown Object (File)
Fri, Oct 10, 3:58 PM
Unknown Object (File)
Wed, Sep 24, 2:01 PM
Unknown Object (File)
Wed, Sep 17, 5:24 AM
Unknown Object (File)
Tue, Sep 16, 12:00 PM
Unknown Object (File)
Mon, Sep 15, 1:17 PM
Subscribers

Details

Summary

The previous commit had the desired effect for setugid programs, but
broke TZ for everyone else. I didn't notice because my test cases
swap out /etc/localtime instead of setting TZ, so add a test case
that sets TZ.

Fixes: b6ea2513f776 ("tzcode: Limit TZ for setugid programs")

Diff Detail

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

Event Timeline

des requested review of this revision.Aug 22 2025, 12:36 AM
des created this revision.
rpokala added inline comments.
lib/libc/tests/stdtime/detect_tz_changes_test.c
41

Please fix the indentation -- either align, or else remove extra spaces.

This revision is now accepted and ready to land.Aug 22 2025, 6:03 AM
des marked an inline comment as done.Aug 22 2025, 7:21 AM
des added inline comments.
lib/libc/tests/stdtime/detect_tz_changes_test.c
41

The indentation is perfectly fine as it is.

This revision was automatically updated to reflect the committed changes.
des marked an inline comment as done.