summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2001-09-04 21:03:17 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2001-09-04 21:03:17 +0000
commitea7154893ee587d7e47bcebff9e70757b48a38bd (patch)
tree89306d510949a89b900db58c3f67a411466d5476 /util.c
parent7c474504105f41654af9663caa833041d25306dc (diff)
downloadperl-ea7154893ee587d7e47bcebff9e70757b48a38bd.tar.gz
Fix Cwd::getcwd() not being tainted, as noticed
by Schwern. p4raw-id: //depot/perl@11873
Diffstat (limited to 'util.c')
-rw-r--r--util.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/util.c b/util.c
index 5c5da23cb1..002690902c 100644
--- a/util.c
+++ b/util.c
@@ -3719,6 +3719,10 @@ Perl_getcwd_sv(pTHX_ register SV *sv)
{
#ifndef PERL_MICRO
+#ifndef INCOMPLETE_TAINTS
+ SvTAINTED_on(sv);
+#endif
+
#ifdef HAS_GETCWD
{
char buf[MAXPATHLEN];