diff options
author | Pierre Humblet <phumblet@phumblet.no-ip.org> | 2009-01-06 04:11:23 +0000 |
---|---|---|
committer | Pierre Humblet <phumblet@phumblet.no-ip.org> | 2009-01-06 04:11:23 +0000 |
commit | 952801c27e33255f3a71d84d38281c1bb42600f2 (patch) | |
tree | 16decc370d65798fcab2dc8ae8f38d13146471a3 /winsup/utils/cygcheck.cc | |
parent | 8ca367408d4687b6221adaa4c916ca4375242ea8 (diff) | |
download | newlib-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.cc | 2 |
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) { |