Use correct PATH separator for Cygwin in pg_regress.c.
authorAndrew Dunstan <[email protected]>
Thu, 17 Mar 2011 04:13:11 +0000 (00:13 -0400)
committerAndrew Dunstan <[email protected]>
Thu, 17 Mar 2011 04:13:11 +0000 (00:13 -0400)
This has been broken for years, and I'm not sure why it has not been
noticed before, but now a very modern Cygwin breaks on it, and the fix
is clearly correct. Backpatching to all live branches.

src/test/regress/pg_regress.c

index 238d72b3998901b45a757724cf2d5ec716385c19..94ad263fb493661996d2134eb1f0dc5f71272e7a 100644 (file)
@@ -805,8 +805,10 @@ initialize_environment(void)
        add_to_path("LD_LIBRARY_PATH", ':', libdir);
        add_to_path("DYLD_LIBRARY_PATH", ':', libdir);
        add_to_path("LIBPATH", ':', libdir);
-#if defined(WIN32) || defined(__CYGWIN__)
+#if defined(WIN32)
        add_to_path("PATH", ';', libdir);
+#elif defined(__CYGWIN__)
+       add_to_path("PATH", ':', libdir);
 #endif
    }
    else