Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit9fa1843

Browse files
committed
postgres -boot would print the wrong program name in event of a
failure in SelectConfigFiles(). Cosmetic issue, but ...
1 parent9d83358 commit9fa1843

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

‎src/backend/bootstrap/bootstrap.c

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* Portions Copyright (c) 1994, Regents of the University of California
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/bootstrap/bootstrap.c,v 1.197 2004/12/31 21:59:34 pgsql Exp $
11+
* $PostgreSQL: pgsql/src/backend/bootstrap/bootstrap.c,v 1.198 2005/01/14 21:08:44 tgl Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -206,6 +206,7 @@ static IndexList *ILHead = NULL;
206206
int
207207
BootstrapMain(intargc,char*argv[])
208208
{
209+
char*progname=argv[0];
209210
inti;
210211
char*dbname;
211212
intflag;
@@ -228,9 +229,9 @@ BootstrapMain(int argc, char *argv[])
228229
/* Compute paths, if we didn't inherit them from postmaster */
229230
if (my_exec_path[0]=='\0')
230231
{
231-
if (find_my_exec(argv[0],my_exec_path)<0)
232+
if (find_my_exec(progname,my_exec_path)<0)
232233
elog(FATAL,"%s: could not locate my own executable path",
233-
argv[0]);
234+
progname);
234235
}
235236

236237
/*
@@ -351,7 +352,7 @@ BootstrapMain(int argc, char *argv[])
351352
/* Acquire configuration parameters, unless inherited from postmaster */
352353
if (!IsUnderPostmaster)
353354
{
354-
if (!SelectConfigFiles(userDoption,argv[0]))
355+
if (!SelectConfigFiles(userDoption,progname))
355356
proc_exit(1);
356357
}
357358

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp