OSDN Git Service

allow zoneinfo-path-relative filenames with no slashes in TZ variable
authorRich Felker <dalias@aerifal.cx>
Mon, 21 Apr 2014 22:11:42 +0000 (18:11 -0400)
committerRich Felker <dalias@aerifal.cx>
Mon, 21 Apr 2014 22:11:42 +0000 (18:11 -0400)
commit5c4f11d995cf178b3146cde0734d6988c145f243
treea0b28b05629046439667f7c63ae29b7b8d28d271
parent164c5c7a32eefa1800a42e07a47b4cc2d64cc802
allow zoneinfo-path-relative filenames with no slashes in TZ variable

since the form TZ=name is reserved for POSIX-form time zone strings,
TZ=:name needs to be used when the zoneinfo filename is in the
top-level zoneinfo directory and therefore does not contain a slash.
previously the leading colon was merely dropped, making it impossible
to access such zones without a full absolute pathname.

changes based on patch by Timo Teräs.
src/time/__tz.c