Index: src/port/path.c =================================================================== RCS file: /cvsroot/pgsql-server/src/port/path.c,v retrieving revision 1.21 diff -c -c -r1.21 path.c *** src/port/path.c 10 Jul 2004 22:58:42 -0000 1.21 --- src/port/path.c 11 Jul 2004 02:50:49 -0000 *************** *** 389,395 **** trim_trailing_separator(char *path) { char *p = path + strlen(path); ! /* trim off trailing slashes */ if (p > path) for (p--; p > path && IS_DIR_SEP(*p); p--) --- 389,414 ---- trim_trailing_separator(char *path) { char *p = path + strlen(path); ! ! #ifdef WIN32 ! /* Skip over network and drive specifiers for win32 */ ! if (strlen(path) >= 2) ! { ! if (IS_DIR_SEP(path[0]) && IS_DIR_SEP(path[1])) ! { ! path += 2; ! while (*path && !IS_DIR_SEP(*path)) ! path++; ! } ! else if (isalpha(path[0]) && path[1] == ':') ! { ! path++; ! if (IS_DIR_SEP(path[1])) ! path++; ! } ! } ! #endif ! /* trim off trailing slashes */ if (p > path) for (p--; p > path && IS_DIR_SEP(*p); p--)