summaryrefslogtreecommitdiff
path: root/miniperlmain.c
diff options
context:
space:
mode:
authorMichael Schroeder <Michael.Schroeder@informatik.uni-erlangen.de>2004-11-11 16:54:43 +0100
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2004-11-17 10:11:20 +0000
commit50acdf951a03f778010b5632532ec99bfa7c4f6a (patch)
treec02916c2de2c738a64bdd1ac0207abd339ab86d1 /miniperlmain.c
parentbe9a9b1dd000aab30f25ebe003679f9814da62af (diff)
downloadperl-50acdf951a03f778010b5632532ec99bfa7c4f6a.tar.gz
SuSE's perl safe_putenf diff
Message-ID: <20041111145443.GA1854@immd4.informatik.uni-erlangen.de> slightly reworked to make the PL_use_safe_putenv variable fit in the current framework. This patch turns on the use of safe putenv for any application that embeds a perl interpreter. p4raw-id: //depot/perl@23507
Diffstat (limited to 'miniperlmain.c')
-rw-r--r--miniperlmain.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/miniperlmain.c b/miniperlmain.c
index 286ce9137a..94a6d5b4f0 100644
--- a/miniperlmain.c
+++ b/miniperlmain.c
@@ -48,6 +48,9 @@ int
main(int argc, char **argv, char **env)
{
int exitstatus;
+#ifndef PERL_USE_SAFE_PUTENV
+ PL_use_safe_putenv = 0;
+#endif /* PERL_USE_SAFE_PUTENV */
#ifdef PERL_GLOBAL_STRUCT
#define PERLVAR(var,type) /**/