From 94433691e41c718ec21b4610bb1331327fd5fa67 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Thu, 26 Jun 2008 18:25:24 +0000 Subject: [PATCH] Fix pg_ctl bug where detection of binary location from postmaster.opts wasn't working. --- src/bin/pg_ctl/pg_ctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/pg_ctl/pg_ctl.c b/src/bin/pg_ctl/pg_ctl.c index 5625f1ce2e..8329eaae28 100644 --- a/src/bin/pg_ctl/pg_ctl.c +++ b/src/bin/pg_ctl/pg_ctl.c @@ -610,7 +610,7 @@ read_post_opts(void) *arg1 = '\0'; /* terminate so we get only program name */ post_opts = arg1 + 1; /* point past whitespace */ } - if (postgres_path != NULL) + if (postgres_path == NULL) postgres_path = optline; } } -- 2.39.5