Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit5788a56

Browse files
committed
Restore fullname[] contents before falling through in pg_open_tzfile().
Fix oversight in commitaf2c5aa: if the shortcut open() doesn't work,we need to reset fullname[] to be just the name of the toplevel tzdatadirectory before we fall through into the pre-existing code. This failedto be exposed in my (tgl's) testing because the fall-through path isactually never taken under normal circumstances.David Rowley, per report from Amit KapilaDiscussion:https://postgr.es/m/CAA4eK1LC7CaNhRAQ__C3ht1JVrPzaAXXhEJRnR5L6bfYHiLmWw@mail.gmail.com
1 parent628462b commit5788a56

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

‎src/timezone/pgtz.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ pg_open_tzfile(const char *name, char *canonname)
105105
if (result >=0)
106106
returnresult;
107107
/* If that didn't work, fall through to do it the hard way */
108+
fullname[fullnamelen]='\0';
108109
}
109110

110111
/*

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp