summaryrefslogtreecommitdiff
path: root/perlapi.c
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2001-06-20 04:54:53 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2001-06-20 04:54:53 +0000
commitcb5953d685cec7d1e5d677ac4d2ddbe33ef0a803 (patch)
treee9a08ee62f26a14c0e39ec84ea16f867ce892576 /perlapi.c
parent6002328acc4eebf94540b6802dbffeac7367da7a (diff)
downloadperl-cb5953d685cec7d1e5d677ac4d2ddbe33ef0a803.tar.gz
After some reading I don't think we can blindly
use systems' realpath(). Too many security problems, too many buggy implementations. TODO: the realpath() emulation code in util.c doesn't seem fully operational? (readlink(), for example?) p4raw-id: //depot/perl@10744
Diffstat (limited to 'perlapi.c')
-rw-r--r--perlapi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/perlapi.c b/perlapi.c
index e910818596..8c5901c3a2 100644
--- a/perlapi.c
+++ b/perlapi.c
@@ -3172,9 +3172,9 @@ Perl_sv_pvbyten_force(pTHXo_ SV* sv, STRLEN* lp)
#undef Perl_sv_realpath
int
-Perl_sv_realpath(pTHXo_ SV* sv, char *path, STRLEN len)
+Perl_sv_realpath(pTHXo_ SV* sv, char *path, STRLEN maxlen)
{
- return ((CPerlObj*)pPerl)->Perl_sv_realpath(sv, path, len);
+ return ((CPerlObj*)pPerl)->Perl_sv_realpath(sv, path, maxlen);
}
#undef Perl_sv_reftype