Restore fullname[] contents before falling through in pg_open_tzfile().

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 5788a5670e4a58049b8adc82c4fef97a2c3be327
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2017-05-07T15:34:31Z
Releases: 10.0
Restore fullname[] contents before falling through in pg_open_tzfile().

Fix oversight in commit af2c5aa88: if the shortcut open() doesn't work,
we need to reset fullname[] to be just the name of the toplevel tzdata
directory before we fall through into the pre-existing code.  This failed
to be exposed in my (tgl's) testing because the fall-through path is
actually never taken under normal circumstances.

David Rowley, per report from Amit Kapila

Discussion: https://postgr.es/m/CAA4eK1LC7CaNhRAQ__C3ht1JVrPzaAXXhEJRnR5L6bfYHiLmWw@mail.gmail.com

Files

PathChange+/−
src/timezone/pgtz.c modified +1 −0

Discussion

Cited messages not in the archive: CAA4eK1LC7CaNhRAQ__C3ht1JVrPzaAXXhEJRnR5L6bfYHiLmWw@mail.gmail.com