Index: src/port/path.c
===================================================================
RCS file: /projects/cvsroot/pgsql-server/src/port/path.c,v
retrieving revision 1.20
diff -c -r1.20 path.c
*** src/port/path.c	11 Jun 2004 17:09:13 -0000	1.20
--- src/port/path.c	21 Jun 2004 00:19:27 -0000
***************
*** 115,121 ****
--- 115,144 ----
  		if (*p == '\\')
  			*p = '/';
  	}
+ 
+     /* skip network and drive specifiers for win32 */
+     if (strlen(path) >= 2)
+     {
+         if (path[0] == '/' && path[1] == '/')
+         {
+             /* network drive */
+             path = strstr(path + 2, "/");
+             if (path == NULL)
+                 return;
+         }
+         else if (path[1] == ':' &&
+                  ((path[0] >= 'a' && path[0] <= 'z') ||
+                   (path[0] >= 'A' && path[0] <= 'Z')))
+         {
+             /* local drive */
+             path += 2;
+         }
+     }
+ 
  #endif
+ 
+     if (path[0] == '/')            /* don't trim leading '/'. */
+         ++path;
  
  	trim_trailing_separator(path);
  }
