diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2005-01-14 21:08:44 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2005-01-14 21:08:44 +0000 |
commit | 9fa1843454c150011e1fc509ced738cb9e6be80e (patch) | |
tree | eef7e9009d147c842fd21dd5bd7485bd2af671c2 /src | |
parent | 9d83358499bf846bb35ae17d6899d5762190e5aa (diff) | |
download | postgresql-9fa1843454c150011e1fc509ced738cb9e6be80e.tar.gz postgresql-9fa1843454c150011e1fc509ced738cb9e6be80e.zip |
postgres -boot would print the wrong program name in event of a
failure in SelectConfigFiles(). Cosmetic issue, but ...
Diffstat (limited to 'src')
-rw-r--r-- | src/backend/bootstrap/bootstrap.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/backend/bootstrap/bootstrap.c b/src/backend/bootstrap/bootstrap.c index b62849fa90d..47d68518ec8 100644 --- a/src/backend/bootstrap/bootstrap.c +++ b/src/backend/bootstrap/bootstrap.c @@ -8,7 +8,7 @@ * Portions Copyright (c) 1994, Regents of the University of California * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/bootstrap/bootstrap.c,v 1.197 2004/12/31 21:59:34 pgsql Exp $ + * $PostgreSQL: pgsql/src/backend/bootstrap/bootstrap.c,v 1.198 2005/01/14 21:08:44 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -206,6 +206,7 @@ static IndexList *ILHead = NULL; int BootstrapMain(int argc, char *argv[]) { + char *progname = argv[0]; int i; char *dbname; int flag; @@ -228,9 +229,9 @@ BootstrapMain(int argc, char *argv[]) /* Compute paths, if we didn't inherit them from postmaster */ if (my_exec_path[0] == '\0') { - if (find_my_exec(argv[0], my_exec_path) < 0) + if (find_my_exec(progname, my_exec_path) < 0) elog(FATAL, "%s: could not locate my own executable path", - argv[0]); + progname); } /* @@ -351,7 +352,7 @@ BootstrapMain(int argc, char *argv[]) /* Acquire configuration parameters, unless inherited from postmaster */ if (!IsUnderPostmaster) { - if (!SelectConfigFiles(userDoption, argv[0])) + if (!SelectConfigFiles(userDoption, progname)) proc_exit(1); } |