From: Hiroshi Saito Date: Wed, 6 May 2009 07:41:13 +0000 (+0000) Subject: Fixed the Service parameter path name problem. X-Git-Tag: pgbouncer_1_3_1_rc1~7 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=30f016d360ab6d620a20c102a352c75ef5eb01a6;p=pgbouncer Fixed the Service parameter path name problem. Per report from Sachin Srivastava. --- diff --git a/win32/win32support.c b/win32/win32support.c index 2726ee5..27355f5 100644 --- a/win32/win32support.c +++ b/win32/win32support.c @@ -235,7 +235,7 @@ static void RegisterService(void) fprintf(stderr, "Failed to determine path name: %s\n", strerror(GetLastError())); exit(1); } - snprintf(cmdline, sizeof(cmdline), "%s -service %s", self, config_fn); + snprintf(cmdline, sizeof(cmdline), "%s -service \"%s\"", self, config_fn); manager = openSCM(); service = CreateService(manager, cf_jobname, cf_jobname, SERVICE_ALL_ACCESS, SERVICE_WIN32_OWN_PROCESS,