* cygcheck.cc (pretty_id): Close pipe.

This commit is contained in:
Corinna Vinschen 2004-10-04 09:42:08 +00:00
parent e49bc789b2
commit a5aa8c3e3a
2 changed files with 5 additions and 0 deletions

View 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

View 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=");