From: Andrew Dunstan Date: Thu, 17 Mar 2011 04:24:04 +0000 (-0400) Subject: Use correct PATH separator for Cygwin in pg_regress.c. X-Git-Tag: REL8_2_21~12 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5773fac1606cdeb3fa60f89eb8c20ef5e904663a;p=thirdparty%2Fpostgresql.git Use correct PATH separator for Cygwin in pg_regress.c. 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. --- diff --git a/src/test/regress/pg_regress.c b/src/test/regress/pg_regress.c index be22c4b9815..efc4d6eb638 100644 --- a/src/test/regress/pg_regress.c +++ b/src/test/regress/pg_regress.c @@ -516,8 +516,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