mirror of
https://github.com/postgres/postgres.git
synced 2025-08-12 15:23:02 +03:00
Modify canonicalize_path() so if we would return a trailing "..", throw
an error instead.
This commit is contained in:
@@ -37,7 +37,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $PostgreSQL: pgsql/src/backend/postmaster/postmaster.c,v 1.464 2005/08/12 18:23:53 tgl Exp $
|
||||
* $PostgreSQL: pgsql/src/backend/postmaster/postmaster.c,v 1.465 2005/08/12 19:42:44 momjian Exp $
|
||||
*
|
||||
* NOTES
|
||||
*
|
||||
@@ -377,8 +377,11 @@ PostmasterMain(int argc, char *argv[])
|
||||
char *userDoption = NULL;
|
||||
int i;
|
||||
|
||||
/* This will call exit() if strdup() fails. */
|
||||
progname = get_progname(argv[0]);
|
||||
if ((progname = get_progname(argv[0])) == NULL)
|
||||
{
|
||||
printf(_("unable to allocate memory for program name \"%s\".\n"), progname);
|
||||
ExitPostmaster(0);
|
||||
}
|
||||
|
||||
MyProcPid = PostmasterPid = getpid();
|
||||
|
||||
|
Reference in New Issue
Block a user