diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2001-09-04 21:03:17 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2001-09-04 21:03:17 +0000 |
commit | ea7154893ee587d7e47bcebff9e70757b48a38bd (patch) | |
tree | 89306d510949a89b900db58c3f67a411466d5476 /util.c | |
parent | 7c474504105f41654af9663caa833041d25306dc (diff) | |
download | perl-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.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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]; |