diff options
Diffstat (limited to 'src/backend')
-rw-r--r-- | src/backend/postmaster/postmaster.c | 6 | ||||
-rw-r--r-- | src/backend/tcop/postgres.c | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/backend/postmaster/postmaster.c b/src/backend/postmaster/postmaster.c index c9783560e13..1e558d5a639 100644 --- a/src/backend/postmaster/postmaster.c +++ b/src/backend/postmaster/postmaster.c @@ -37,7 +37,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/postmaster/postmaster.c,v 1.386 2004/05/13 22:45:02 momjian Exp $ + * $PostgreSQL: pgsql/src/backend/postmaster/postmaster.c,v 1.387 2004/05/14 17:04:44 momjian Exp $ * * NOTES * @@ -693,13 +693,13 @@ PostmasterMain(int argc, char *argv[]) /* * On some systems our dynloader code needs the executable's pathname. */ - if (find_my_exec(my_exec_path, argv[0]) < 0) + if (find_my_exec(argv[0], my_exec_path) < 0) ereport(FATAL, (errmsg("%s: could not locate my own executable path", progname))); #ifdef EXEC_BACKEND - if (find_other_exec(postgres_exec_path, argv[0], "postgres", PG_VERSIONSTR) < 0) + if (find_other_exec(argv[0], "postgres", PG_VERSIONSTR, postgres_exec_path) < 0) ereport(FATAL, (errmsg("%s: could not locate postgres executable or non-matching version", progname))); diff --git a/src/backend/tcop/postgres.c b/src/backend/tcop/postgres.c index 97c4d1dde16..72750bfa623 100644 --- a/src/backend/tcop/postgres.c +++ b/src/backend/tcop/postgres.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/tcop/postgres.c,v 1.405 2004/05/13 22:45:03 momjian Exp $ + * $PostgreSQL: pgsql/src/backend/tcop/postgres.c,v 1.406 2004/05/14 17:04:45 momjian Exp $ * * NOTES * this is the "main" module of the postgres backend and @@ -2648,7 +2648,7 @@ PostgresMain(int argc, char *argv[], const char *username) /* * On some systems our dynloader code needs the executable's pathname. */ - if (strlen(my_exec_path) == 0 && find_my_exec(my_exec_path, argv[0]) < 0) + if (strlen(my_exec_path) == 0 && find_my_exec(argv[0], my_exec_path) < 0) ereport(FATAL, (errmsg("%s: could not locate postgres executable", argv[0]))); |