*** pgsql/contrib/pg_upgrade/option.c 2010/05/12 02:19:11 1.1 --- pgsql/contrib/pg_upgrade/option.c 2010/05/14 00:13:38 1.2 *************** validateDirectoryOption(migratorContext *** 308,316 **** /* * Trim off any trailing path separators */ ! if ((*dirpath)[strlen(*dirpath) - 1] == pathSeparator) (*dirpath)[strlen(*dirpath) - 1] = 0; - } --- 308,320 ---- /* * Trim off any trailing path separators */ ! #ifndef WIN32 ! if ((*dirpath)[strlen(*dirpath) - 1] == '/') ! #else ! if ((*dirpath)[strlen(*dirpath) - 1] == '/' || ! (*dirpath)[strlen(*dirpath) - 1] == '\\') ! #endif (*dirpath)[strlen(*dirpath) - 1] = 0; }