diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2004-08-13 14:47:23 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2004-08-13 14:47:23 +0000 |
commit | 79f9ee9d15cdc4e96faa69135c4a2f734577e9d6 (patch) | |
tree | 3f7efdbee7cf6bda4052f6f487563b13efb358d3 /src/port/path.c | |
parent | d785841f831fd9bc9cf11ed62d8571910a71bd0c (diff) | |
download | postgresql-79f9ee9d15cdc4e96faa69135c4a2f734577e9d6.tar.gz postgresql-79f9ee9d15cdc4e96faa69135c4a2f734577e9d6.zip |
Fix core dumps, inability to count, etc associated with canonicalize_path
patches.
Diffstat (limited to 'src/port/path.c')
-rw-r--r-- | src/port/path.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/port/path.c b/src/port/path.c index 50f6476f427..7e99ec80adc 100644 --- a/src/port/path.c +++ b/src/port/path.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/port/path.c,v 1.29 2004/08/12 19:03:44 momjian Exp $ + * $PostgreSQL: pgsql/src/port/path.c,v 1.30 2004/08/13 14:47:23 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -335,7 +335,7 @@ set_pglocale_pgservice(const char *argv0, const char *app) { char path[MAXPGPATH]; char my_exec_path[MAXPGPATH]; - char env_path[MAXPGPATH + sizeof("PGLOCALEDIR=")]; /* longer than PGSYSCONFDIR */ + char env_path[MAXPGPATH + sizeof("PGSYSCONFDIR=")]; /* longer than PGLOCALEDIR */ /* don't set LC_ALL in the backend */ if (strcmp(app, "postgres") != 0) @@ -353,7 +353,7 @@ set_pglocale_pgservice(const char *argv0, const char *app) { /* set for libpq to use */ snprintf(env_path, sizeof(env_path), "PGLOCALEDIR=%s", path); - canonicalize_path(env_path); + canonicalize_path(env_path + 12); putenv(strdup(env_path)); } #endif @@ -364,7 +364,7 @@ set_pglocale_pgservice(const char *argv0, const char *app) /* set for libpq to use */ snprintf(env_path, sizeof(env_path), "PGSYSCONFDIR=%s", path); - canonicalize_path(env_path); + canonicalize_path(env_path + 13); putenv(strdup(env_path)); } } |