aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre Humblet <phumblet@phumblet.no-ip.org>2009-01-06 04:11:23 +0000
committerPierre Humblet <phumblet@phumblet.no-ip.org>2009-01-06 04:11:23 +0000
commit952801c27e33255f3a71d84d38281c1bb42600f2 (patch)
tree16decc370d65798fcab2dc8ae8f38d13146471a3
parent8ca367408d4687b6221adaa4c916ca4375242ea8 (diff)
downloadnewlib-952801c27e33255f3a71d84d38281c1bb42600f2.zip
newlib-952801c27e33255f3a71d84d38281c1bb42600f2.tar.gz
newlib-952801c27e33255f3a71d84d38281c1bb42600f2.tar.bz2
* cygcheck.cc (dump_sysinfo_services): Quote the path for popen.
-rw-r--r--winsup/utils/ChangeLog4
-rw-r--r--winsup/utils/cygcheck.cc2
2 files changed, 5 insertions, 1 deletions
diff --git a/winsup/utils/ChangeLog b/winsup/utils/ChangeLog
index 4d0e775..335f387 100644
--- a/winsup/utils/ChangeLog
+++ b/winsup/utils/ChangeLog
@@ -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.
diff --git a/winsup/utils/cygcheck.cc b/winsup/utils/cygcheck.cc
index b4b16de..42ce64e 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)
{