1
0
mirror of https://github.com/postgres/postgres.git synced 2025-11-12 05:01:15 +03:00

Fix core dumps, inability to count, etc associated with canonicalize_path

patches.
This commit is contained in:
Tom Lane
2004-08-13 14:47:23 +00:00
parent d785841f83
commit 79f9ee9d15
4 changed files with 13 additions and 10 deletions

View File

@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/utils/fmgr/dfmgr.c,v 1.75 2004/07/12 02:22:49 momjian Exp $
* $PostgreSQL: pgsql/src/backend/utils/fmgr/dfmgr.c,v 1.76 2004/08/13 14:47:23 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -405,10 +405,11 @@ find_in_dynamic_libpath(const char *basename)
strncpy(piece, p, len);
piece[len] = '\0';
canonicalize_path(piece);
mangled = substitute_libpath_macro(piece);
pfree(piece);
canonicalize_path(mangled);
/* only absolute paths */
if (!is_absolute_path(mangled))
ereport(ERROR,