diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2003-09-08 20:18:56 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2003-09-08 20:18:56 +0000 |
commit | 9e5f0c48c3fda7e83fa558f04d0e3a9d8a8a21cb (patch) | |
tree | 087ab96adf1ab252930f3f1ca4802041cf440c05 /pp_sys.c | |
parent | cb151f2a014b615733f7732d6768d29bc9f84be6 (diff) | |
download | perl-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.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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: { |