diff --git a/winsup/utils/ChangeLog b/winsup/utils/ChangeLog index 4d0e775b1..335f38775 100644 --- a/winsup/utils/ChangeLog +++ b/winsup/utils/ChangeLog @@ -1,3 +1,7 @@ +2009-01-05 Pierre Humblet + + * cygcheck.cc (dump_sysinfo_services): Quote the path for popen. + 2008-12-30 Pierre Humblet * cygcheck.cc (pretty_id): Quote the path for popen. diff --git a/winsup/utils/cygcheck.cc b/winsup/utils/cygcheck.cc index b4b16dec9..42ce64e29 100644 --- a/winsup/utils/cygcheck.cc +++ b/winsup/utils/cygcheck.cc @@ -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) {