projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3e71ce1
)
Fix potential coredump on bad locale value in pg_upgrade.
author
Tom Lane
<
[email protected]
>
Thu, 30 Jan 2014 23:10:06 +0000
(18:10 -0500)
committer
Tom Lane
<
[email protected]
>
Thu, 30 Jan 2014 23:10:06 +0000
(18:10 -0500)
Thinko in error report (and a typo in the message text, too). We're
failing anyway, but it would be good to print something useful first.
Noted while reviewing a patch to make pg_upgrade's locale code laxer.
contrib/pg_upgrade/check.c
patch
|
blob
|
blame
|
history
diff --git
a/contrib/pg_upgrade/check.c
b/contrib/pg_upgrade/check.c
index e9e9a4fe339a50bb896c7edf0e19e9d36bcc42e9..32b9bb998ae91f5b9c18452f5b64026545707872 100644
(file)
--- a/
contrib/pg_upgrade/check.c
+++ b/
contrib/pg_upgrade/check.c
@@
-979,7
+979,7
@@
get_canonical_locale_name(int category, const char *locale)
res = setlocale(category, locale);
if (!res)
- pg_log(PG_FATAL, "failed to get system local
name for \"%s\"\n", res
);
+ pg_log(PG_FATAL, "failed to get system local
e name for \"%s\"\n", locale
);
res = pg_strdup(res);