From: Bruce Momjian Date: Wed, 12 May 2004 03:48:42 +0000 (+0000) Subject: Fix bug by passing arg[0] to find_my_binary(). X-Git-Tag: REL8_0_0BETA1~656 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b9ba13a80ea7b16fdcf73b1ab62afa3852c12758;p=postgresql Fix bug by passing arg[0] to find_my_binary(). --- diff --git a/src/backend/postmaster/postmaster.c b/src/backend/postmaster/postmaster.c index e3df517d1e..d2c7104174 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.383 2004/05/11 21:57:14 momjian Exp $ + * $PostgreSQL: pgsql/src/backend/postmaster/postmaster.c,v 1.384 2004/05/12 03:48:42 momjian Exp $ * * NOTES * @@ -692,7 +692,7 @@ PostmasterMain(int argc, char *argv[]) /* * On some systems our dynloader code needs the executable's pathname. */ - if (find_my_binary(pg_pathname, progname, "postgres") < 0) + if (find_my_binary(pg_pathname, argv[0], "postgres") < 0) ereport(FATAL, (errmsg("%s: could not locate postgres executable", progname)));