15290783 SUNBT6333830 Perl should use setenv(3c) and unsetenv(3c) calls s11u2-sru
authorVladimir Marek <Vladimir.Marek@oracle.com>
Fri, 27 Jun 2014 16:25:42 +0200
branchs11u2-sru
changeset 3206 efb480b8e98f
parent 3203 bacc4a64b2b3
child 3207 2b2b75980f35
15290783 SUNBT6333830 Perl should use setenv(3c) and unsetenv(3c) calls
components/perl512/patches/setenv.patch
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/perl512/patches/setenv.patch	Fri Jun 27 16:25:42 2014 +0200
@@ -0,0 +1,15 @@
+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
[email protected]@ -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);