diff options
author | Craig A. Berry <craigberry@mac.com> | 2014-08-07 21:29:14 -0500 |
---|---|---|
committer | Craig A. Berry <craigberry@mac.com> | 2014-08-07 21:29:14 -0500 |
commit | 998ae67e4ef3c82df027eb4f422811225e7fc1ef (patch) | |
tree | 00cc505f95cdd9e318bd0c4aa27cf15cee6317f2 /META.json | |
parent | 854a00d80afb6700138c1b8553393de2eb36e500 (diff) | |
download | perl-998ae67e4ef3c82df027eb4f422811225e7fc1ef.tar.gz |
getenv() failed lookup need not set errno on VMS.
The standard does not indicate any errno values set when getenv()
simply doesn't find the requested value, which is a pretty common
occurrence. The VMS-specific implementation of getenv() has been
setting errno in this case, which means there is often an errno
value hanging around for later unsuspecting operations. It
particularly tends to bite people who don't read the documentation
to die() and/or don't understand how errno works (only valid after
a failed syscall).
So we now stop setting errno in this case, but leave it for a few
serious errors that should be extremely rare.
Diffstat (limited to 'META.json')
0 files changed, 0 insertions, 0 deletions