summaryrefslogtreecommitdiff
path: root/doio.c
diff options
context:
space:
mode:
authorMartin Hasch <mhasch@cpan.org>2006-03-10 12:10:49 -0800
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2006-04-24 12:15:58 +0000
commitf27977c3127ab1a3bd087690c418557490be39b2 (patch)
treed6381c7fdad086d9a2f2abee28407e2aed2b09f8 /doio.c
parentef097d42b8f645b77866f6e17a857c98be228046 (diff)
downloadperl-f27977c3127ab1a3bd087690c418557490be39b2.tar.gz
[perl #38709] Opening '|-' triggers unjustified taint check
From: mhasch@cpan.org (via RT) <perlbug-followup@perl.org> Message-ID: <rt-3.0.11-38709-130993.2.89182805885773@perl.org> p4raw-id: //depot/perl@27951
Diffstat (limited to 'doio.c')
-rw-r--r--doio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/doio.c b/doio.c
index 3d29b59f80..6910cf1627 100644
--- a/doio.c
+++ b/doio.c
@@ -246,7 +246,7 @@ Perl_do_openn(pTHX_ GV *gv, register const char *oname, I32 len, int as_raw,
errno = EPIPE;
goto say_false;
}
- if ((*name == '-' && name[1] == '\0') || num_svs)
+ if (!(*name == '-' && name[1] == '\0') || num_svs)
TAINT_ENV();
TAINT_PROPER("piped open");
if (!num_svs && name[len-1] == '|') {