? pg_config_paths.h
Index: path.c
===================================================================
RCS file: /cvsroot/pgsql/src/port/path.c,v
retrieving revision 1.51
diff -c -r1.51 path.c
*** path.c	26 Jan 2005 19:24:03 -0000	1.51
--- path.c	11 Aug 2005 03:52:06 -0000
***************
*** 284,290 ****
  
  		if (len > 2 && strcmp(path + len - 2, "/.") == 0)
  			trim_directory(path);
! 		else if (len > 3 && strcmp(path + len - 3, "/..") == 0)
  		{
  			trim_directory(path);
  			trim_directory(path);	/* remove directory above */
--- 284,293 ----
  
  		if (len > 2 && strcmp(path + len - 2, "/.") == 0)
  			trim_directory(path);
! 		/* We can only deal with "/usr/local/..", not "/usr/local/../.." */
! 		else if (len > 3 && strcmp(path + len - 3, "/..") == 0 &&
! 				 (len != 5 || strcmp(path, "../..") != 0) &&
! 				 (len < 6 || strcmp(path + len - 6, "/../..") != 0))
  		{
  			trim_directory(path);
  			trim_directory(path);	/* remove directory above */
