From: Jarkko Hietaniemi Date: Mon, 8 Sep 2003 20:18:56 +0000 (+0000) Subject: Radu Greab is my hero (the recent cygwin getpw*->pw_comment X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=9e5f0c48c3fda7e83fa558f04d0e3a9d8a8a21cb;p=p5sagit%2Fp5-mst-13.2.git Radu Greab is my hero (the recent cygwin getpw*->pw_comment being a bad pointer is apparently a known cygwin bug). The cure is to initialize the field. p4raw-id: //depot/perl@21103 --- diff --git a/pp_sys.c b/pp_sys.c index f837217..72af678 100644 --- a/pp_sys.c +++ b/pp_sys.c @@ -5208,6 +5208,12 @@ PP(pp_gpwent) * --jhi */ +# if defined(__CYGWIN__) && defined(USE_REENTRANT_API) + /* Cygwin 1.5.3-1 has buggy getpwnam_r() and getpwuid_r(): + * the pw_comment is left uninitialized. */ + PL_reentrant_buffer->_pwent_struct.pw_comment = NULL; +# endif + switch (which) { case OP_GPWNAM: {