summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcus Holland-Moritz <mhx-perl@gmx.net>2008-04-13 10:28:31 +0000
committerMarcus Holland-Moritz <mhx-perl@gmx.net>2008-04-13 10:28:31 +0000
commita2e578dad2f237dd09854deb3a557d2eeeb56a83 (patch)
tree058b54bd9bd3f59d678063615803e3299e0bdbb4
parent4d567a5610bb49ab2426b6b49b0c4f99be2c0aa2 (diff)
downloadperl-a2e578dad2f237dd09854deb3a557d2eeeb56a83.tar.gz
Add two missing dVAR's.
p4raw-id: //depot/perl@33671
-rw-r--r--perl.c2
-rw-r--r--perlio.c3
2 files changed, 5 insertions, 0 deletions
diff --git a/perl.c b/perl.c
index 9813d6dcb3..d7a07eb959 100644
--- a/perl.c
+++ b/perl.c
@@ -4245,6 +4245,8 @@ S_validate_suid(pTHX_ PerlIO *rsfp)
if (PL_euid != PL_uid || PL_egid != PL_gid) { /* (suidperl doesn't exist, in fact) */
# ifndef SETUID_SCRIPTS_ARE_SECURE_NOW
+ dVAR;
+
PerlLIO_fstat(PerlIO_fileno(rsfp),&PL_statbuf); /* may be either wrapped or real suid */
if ((PL_euid != PL_uid && PL_euid == PL_statbuf.st_uid && PL_statbuf.st_mode & S_ISUID)
||
diff --git a/perlio.c b/perlio.c
index 4efc88d668..b935ca6b26 100644
--- a/perlio.c
+++ b/perlio.c
@@ -3131,6 +3131,9 @@ PerlIOStdio_close(pTHX_ PerlIO *f)
IV result = 0;
int saveerr = 0;
int dupfd = -1;
+#ifdef USE_ITHREADS
+ dVAR;
+#endif
#ifdef SOCKS5_VERSION_NAME
/* Socks lib overrides close() but stdio isn't linked to
that library (though we are) - so we must call close()