summaryrefslogtreecommitdiff
path: root/pp_sys.c
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2003-09-08 20:18:56 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2003-09-08 20:18:56 +0000
commit9e5f0c48c3fda7e83fa558f04d0e3a9d8a8a21cb (patch)
tree087ab96adf1ab252930f3f1ca4802041cf440c05 /pp_sys.c
parentcb151f2a014b615733f7732d6768d29bc9f84be6 (diff)
downloadperl-9e5f0c48c3fda7e83fa558f04d0e3a9d8a8a21cb.tar.gz
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
Diffstat (limited to 'pp_sys.c')
-rw-r--r--pp_sys.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/pp_sys.c b/pp_sys.c
index f837217098..72af678858 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:
{