Index: pg_ctl.c =================================================================== RCS file: /projects/cvsroot/pgsql/src/bin/pg_ctl/pg_ctl.c,v retrieving revision 1.39 diff -u -b -c -r1.39 pg_ctl.c *** pg_ctl.c 16 Oct 2004 03:10:14 -0000 1.39 --- pg_ctl.c 20 Oct 2004 01:02:56 -0000 *************** *** 22,27 **** --- 22,28 ---- #include "getopt_long.h" #if defined(__CYGWIN__) + #include #include #endif *************** *** 814,819 **** --- 815,823 ---- { static char cmdLine[MAXPGPATH]; int ret; + #ifdef __CYGWIN__ + static char buf[MAXPGPATH]; + #endif if (registration) ret = find_my_exec(argv0, cmdLine); *************** *** 824,829 **** --- 828,838 ---- write_stderr(_("%s: could not find exe"), progname); exit(1); } + #ifdef __CYGWIN__ + /* need to convert to windows path */ + cygwin_conv_to_full_win32_path (cmdLine, buf); + strcpy(cmdLine, buf); + #endif if (registration) {