* cygcheck.cc (dump_sysinfo_services): Quote the path for popen.

This commit is contained in:
Pierre Humblet 2009-01-06 04:11:23 +00:00
parent 8ca367408d
commit 952801c27e
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2009-01-05 Pierre Humblet <Pierre.Humblet@ieee.org>
* cygcheck.cc (dump_sysinfo_services): Quote the path for popen.
2008-12-30 Pierre Humblet <Pierre.Humblet@ieee.org>
* cygcheck.cc (pretty_id): Quote the path for popen.

View File

@ -1137,7 +1137,7 @@ dump_sysinfo_services ()
/* For verbose mode, just run cygrunsrv --list --verbose and copy output
verbatim; otherwise run cygrunsrv --list and then cygrunsrv --query for
each service. */
snprintf (buf, sizeof (buf), (verbose ? "\"%s\" --list --verbose" : "%s --list"),
snprintf (buf, sizeof (buf), (verbose ? "\"%s\" --list --verbose" : "\"%s\" --list"),
cygrunsrv);
if ((f = popen (buf, "rt")) == NULL)
{