Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 5b079cb

Browse files
committed
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.
1 parent ad3aff4 commit 5b079cb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/test/regress/pg_regress.c

+3-1
Original file line numberDiff line numberDiff line change
@@ -817,8 +817,10 @@ initialize_environment(void)
817817
add_to_path("LD_LIBRARY_PATH", ':', libdir);
818818
add_to_path("DYLD_LIBRARY_PATH", ':', libdir);
819819
add_to_path("LIBPATH", ':', libdir);
820-
#if defined(WIN32) || defined(__CYGWIN__)
820+
#if defined(WIN32)
821821
add_to_path("PATH", ';', libdir);
822+
#elif defined(__CYGWIN__)
823+
add_to_path("PATH", ':', libdir);
822824
#endif
823825
}
824826
else

0 commit comments

Comments
 (0)