Message ID | mvmsi44uc5w.fsf@hawking.suse.de |
---|---|
State | New |
Headers | show |
Is there some reason it's hard to add a test for this to the testsuite?
Joseph Myers <joseph@codesourcery.com> writes:
> Is there some reason it's hard to add a test for this to the testsuite?
It depends on TZDEFRULES on the host.
Andreas.
diff --git a/time/tzfile.c b/time/tzfile.c index 57abbb8..0e581f2 100644 --- a/time/tzfile.c +++ b/time/tzfile.c @@ -628,6 +628,12 @@ __tzfile_default (const char *std, const char *dst, __timezone = -types[0].offset; compute_tzname_max (stdlen + dstlen); + + /* Invalidate the tzfile attribute cache to force rereading + TZDEFRULES the next time it is used. */ + tzfile_dev = 0; + tzfile_ino = 0; + tzfile_mtime = 0; } void