History log of /freebsd/lib/libc/tests/stdtime/Makefile (Results 1 – 4 of 4)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# df8bc705 27-Sep-2025 Dag-Erling Smørgrav <des@FreeBSD.org>

tzcode: Fix issues when TZ is an absolute path

* If TZ starts with TZDIR, strip any additional slashes so relname
does not end up looking like an absolute path. For instance,
TZ=/usr/share/zone

tzcode: Fix issues when TZ is an absolute path

* If TZ starts with TZDIR, strip any additional slashes so relname
does not end up looking like an absolute path. For instance,
TZ=/usr/share/zoneinfo//UTC should result in UTC, not /UTC.

* In the setugid case, we were incorrectly passing name rather than
relname to fstatat().

* Modify the tz_env and tz_env_setugid test cases to exercise both
of these scenarios.

* Also add test cases for invalid values of TZ, which I wrote
earlier but forgot to include in a5f14e4f9069.

Reported by: Paul Eggert <eggert@cs.ucla.edu>
MFC after: 3 days
Fixes: 967a49a21a27 ("Update tzcode to 2025b")
Fixes: a5f14e4f9069 ("tzcode: Use -00 only for invalid time zones")
Reviewed by: philip
Differential Revision: https://reviews.freebsd.org/D52753

show more ...


# c6c7c7ac 25-Aug-2025 Dag-Erling Smørgrav <des@FreeBSD.org>

tzcode: Add test case for setugid programs

Fixes: a6b19979bf13 ("tzcode: Fix TZ for non-setugid programs")
Differential Revision: https://reviews.freebsd.org/D52124


Revision tags: release/13.5.0-p3, release/14.2.0-p5, release/14.3.0-p2
# 57ee5657 18-Jul-2025 Dag-Erling Smørgrav <des@FreeBSD.org>

libc: Test time zone change detection.

While here, clean the detection code up a bit.

Sponsored by: Klara, Inc.
Sponsored by: NetApp, Inc.
Reviewed by: markj
Differential Revision: https://reviews.

libc: Test time zone change detection.

While here, clean the detection code up a bit.

Sponsored by: Klara, Inc.
Sponsored by: NetApp, Inc.
Reviewed by: markj
Differential Revision: https://reviews.freebsd.org/D51343

show more ...


Revision tags: release/14.3.0-p1, release/14.2.0-p4, release/13.5.0-p2, release/14.3.0, release/13.4.0-p5, release/13.5.0-p1, release/14.2.0-p3, release/13.5.0, release/14.2.0-p2, release/14.1.0-p8, release/13.4.0-p4, release/14.1.0-p7, release/14.2.0-p1, release/13.4.0-p3
# 4285e024 09-Dec-2024 Dag-Erling Smørgrav <des@FreeBSD.org>

strptime: Fix day-of-week calculation.

The day-of-week calculation used the raw year value without adjusting
for TM_YEAR_BASE, so it was off by one for 300 years out of every 400;
it just happened t

strptime: Fix day-of-week calculation.

The day-of-week calculation used the raw year value without adjusting
for TM_YEAR_BASE, so it was off by one for 300 years out of every 400;
it just happened to be correct for 1901 through 2000. It also used a
loop where a simple addition would have sufficed.

While here, simplify our version of Gauss's algorithm, and document
that we assume the Gregorian calendar.

MFC after: 1 week
PR: 282916
Reviewed by: imp, allanjude, philip
Differential Revision: https://reviews.freebsd.org/D47977

show more ...