Skip to content

Commit 4056279

Browse files
committed
Only do find_my_exec if it doesn't come from the postmaster.
1 parent 9ee3310 commit 4056279

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/backend/tcop/postgres.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/tcop/postgres.c,v 1.410 2004/05/19 18:58:44 momjian Exp $
11+
* $PostgreSQL: pgsql/src/backend/tcop/postgres.c,v 1.411 2004/05/19 19:39:27 momjian Exp $
1212
*
1313
* NOTES
1414
* this is the "main" module of the postgres backend and
@@ -2185,7 +2185,7 @@ PostgresMain(int argc, char *argv[], const char *username)
21852185
/* Set up reference point for stack depth checking */
21862186
stack_base_ptr = &stack_base;
21872187

2188-
if (find_my_exec(argv[0], my_exec_path) < 0)
2188+
if (my_exec_path[0] == '\0' && find_my_exec(argv[0], my_exec_path) < 0)
21892189
elog(FATAL,
21902190
gettext("%s: could not locate my own executable path"),
21912191
argv[0]);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy