*
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/postmaster/postmaster.c,v 1.408 2004/07/11 21:33:59 momjian Exp $
+ * $PostgreSQL: pgsql/src/backend/postmaster/postmaster.c,v 1.409 2004/07/11 23:49:45 momjian Exp $
*
* NOTES
*
InitializeGUCOptions();
userPGDATA = getenv("PGDATA"); /* default value */
- canonicalize_path(userPGDATA);
opterr = 1;
ExitPostmaster(1);
}
+ if (userPGDATA)
+ {
+ userPGDATA = strdup(userPGDATA);
+ canonicalize_path(userPGDATA);
+ }
+
if (onlyConfigSpecified(userPGDATA))
{
/*
*
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/utils/init/miscinit.c,v 1.127 2004/06/18 06:13:54 tgl Exp $
+ * $PostgreSQL: pgsql/src/backend/utils/init/miscinit.c,v 1.128 2004/07/11 23:49:48 momjian Exp $
*
*-------------------------------------------------------------------------
*/
errmsg("out of memory")));
}
- /*
- * Strip any trailing slash. Not strictly necessary, but avoids
- * generating funny-looking paths to individual files.
- */
canonicalize_path(new);
if (DataDir)
* Written by Peter Eisentraut <peter_e@gmx.net>.
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/utils/misc/guc.c,v 1.216 2004/07/11 21:48:25 momjian Exp $
+ * $PostgreSQL: pgsql/src/backend/utils/misc/guc.c,v 1.217 2004/07/11 23:49:51 momjian Exp $
*
*--------------------------------------------------------------------
*/
if (doit)
{
/* We have to create a new pointer to force the change */
- char *canon_val = guc_strdup(FATAL, newval);
+ char *canon_val = guc_strdup(ERROR, newval);
canonicalize_path(canon_val);
return canon_val;
}