[Patch] cygcheck: ``pclose'' what was ``popen''ed.
Bas van Gompel
cygwin-patches.buzz@bavag.tmfweb.nl
Wed Sep 29 21:06:00 GMT 2004
Ik schreef:
: Another trivial (IMO) patch. What was opened by ``popen'', needs
: closing by ``pclose''.
Domething went wrong. (Linenumbers in the patch were off...)
Sorry! The following patch _should_ apply.
: ChangeLog-entry:
2004-09-29 Bas van Gompel <cygwin-patch.buzz@bavag.tmfweb.nl>
* cygcheck.cc (pretty_id): Close pipe.
--- src/winsup/utils/cygcheck.cc 21 Mar 2004 17:58:14 -0000 1.43
+++ src/winsup/utils/cygcheck.cc 28 Sep 2004 20:42:32 -0000
@@ -791,6 +791,7 @@ pretty_id (const char *s, char *cygwin,
static char empty[] = "";
buf[0] = '\0';
fgets (buf, sizeof (buf), f);
+ pclose(f);
char *uid = strtok (buf, ")");
if (uid)
uid += strlen ("uid=");
L8r.
Buzz.
--
) | | ---/ ---/ Yes, this | This message consists of true | I do not
-- | | / / really is | and false bits entirely. | mail for
) | | / / a 72 by 4 +-------------------------------+ any1 but
-- \--| /--- /--- .sigfile. | |perl -pe "s.u(z)\1.as." | me. 4^re
More information about the Cygwin-patches
mailing list