OSDN Git Service

* cygcheck.cc (pretty_id): Close pipe.
authorcorinna <corinna>
Mon, 4 Oct 2004 09:42:08 +0000 (09:42 +0000)
committercorinna <corinna>
Mon, 4 Oct 2004 09:42:08 +0000 (09:42 +0000)
winsup/utils/ChangeLog
winsup/utils/cygcheck.cc

index 6684e3a..38fb67c 100644 (file)
@@ -1,3 +1,7 @@
+2004-10-04  Bas van Gompel  <cygwin-patch.buzz@bavag.tmfweb.nl>
+
+       * cygcheck.cc (pretty_id): Close pipe.
+
 2004-09-23  Bas van Gompel  <cygwin-patch.buzz@bavag.tmfweb.nl>
 
        * dump_setup.cc (dump_setup): Remove unneeded strlen when check_files
index 924c3ce..f5008e9 100644 (file)
@@ -791,6 +791,7 @@ pretty_id (const char *s, char *cygwin, size_t cyglen)
   static char empty[] = "";
   buf[0] = '\0';
   fgets (buf, sizeof (buf), f);
+  pclose (f);
   char *uid = strtok (buf, ")");
   if (uid)
     uid += strlen ("uid=");