components/perl512/patches/setenv.patch
author Vladimir Marek <Vladimir.Marek@oracle.com>
Fri, 27 Jun 2014 16:25:42 +0200
branchs11u2-sru
changeset 3206 efb480b8e98f
permissions -rw-r--r--
15290783 SUNBT6333830 Perl should use setenv(3c) and unsetenv(3c) calls

This is in-house developed patch reported at
https://rt.perl.org/Ticket/Display.html?id=121972

Expectation is that future perl versions will contain the fix.
--- perl-5.12.5/util.c	2014-05-28 12:10:02.250325812 +0200
+++ perl-5.12.5/util.c	2014-05-28 12:09:34.437338588 +0200
@@ -1712,7 +1712,7 @@ Perl_my_setenv(pTHX_ const char *nam, co
        my_setenv_format(environ[i], nam, nlen, val, vlen);
     } else {
 # endif
-#   if defined(__CYGWIN__) || defined(EPOC) || defined(__SYMBIAN32__) || defined(__riscos__)
+#   if defined(__CYGWIN__) || defined(EPOC) || defined(__SYMBIAN32__) || defined(__riscos__) || defined(__sun)
 #       if defined(HAS_UNSETENV)
         if (val == NULL) {
             (void)unsetenv(nam);