OSDN Git Service

* cygcheck.cc (dump_sysinfo_services): Quote the path for popen.
authorphumblet <phumblet>
Tue, 6 Jan 2009 04:11:23 +0000 (04:11 +0000)
committerphumblet <phumblet>
Tue, 6 Jan 2009 04:11:23 +0000 (04:11 +0000)
winsup/utils/ChangeLog
winsup/utils/cygcheck.cc

index 4d0e775..335f387 100644 (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.
index b4b16de..42ce64e 100644 (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)
     {