]> granicus.if.org Git - postgresql/commit
Restore fullname[] contents before falling through in pg_open_tzfile().
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 7 May 2017 15:34:31 +0000 (11:34 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 7 May 2017 15:35:11 +0000 (11:35 -0400)
commit9061680f06b06588281bdc8e59106eb33726360f
tree58bb6bde84b49ce1254d9228a5ce05eae4c8504d
parentfea56cd4d0f8d2e848fe291aca382d9e1c9eca39
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
src/timezone/pgtz.c