Fix pg_ctl bug where detection of binary location from postmaster.opts
authorBruce Momjian <bruce@momjian.us>
Thu, 26 Jun 2008 18:25:24 +0000 (18:25 +0000)
committerBruce Momjian <bruce@momjian.us>
Thu, 26 Jun 2008 18:25:24 +0000 (18:25 +0000)
wasn't working.

src/bin/pg_ctl/pg_ctl.c

index 58fae74adee61b2239c151b25480491e5faf0993..f90bf29bed4e38510f3f8343c8a6b272e993f87d 100644 (file)
@@ -4,7 +4,7 @@
  *
  * Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group
  *
- * $PostgreSQL: pgsql/src/bin/pg_ctl/pg_ctl.c,v 1.102 2008/06/26 03:51:56 momjian Exp $
+ * $PostgreSQL: pgsql/src/bin/pg_ctl/pg_ctl.c,v 1.103 2008/06/26 18:25:24 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -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;
            }
        }