aboutsummaryrefslogtreecommitdiff
path: root/winsup/utils/cygcheck.cc
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 /winsup/utils/cygcheck.cc
parent8ca367408d4687b6221adaa4c916ca4375242ea8 (diff)
downloadnewlib-952801c27e33255f3a71d84d38281c1bb42600f2.zip
newlib-952801c27e33255f3a71d84d38281c1bb42600f2.tar.gz
newlib-952801c27e33255f3a71d84d38281c1bb42600f2.tar.bz2
* cygcheck.cc (dump_sysinfo_services): Quote the path for popen.
Diffstat (limited to 'winsup/utils/cygcheck.cc')
-rw-r--r--winsup/utils/cygcheck.cc2
1 files changed, 1 insertions, 1 deletions
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)
{