[Ssh-sftp-perl-users] bug in Net::SSH2 realpath() method ?!
Brought to you by:
dbrobins
From: hugues <Hug...@af...> - 2006-10-09 09:05:26
|
Hi David, I think i've found a bug and the fix for it in the Net::SSH2 module. It happens in the SSH2.xs file inside the net_sf_realpath() function. Probably a cut-and-paste left-over from net_sf_readlink() function above ;-) Here is the fix (at least it fixes things for me ;-): Index: Net-SSH2/SSH2.xs =================================================================== --- Net-SSH2/SSH2.xs (revision 50) +++ Net-SSH2/SSH2.xs (working copy) @@ -1520,7 +1520,7 @@ pv_real = SvPVX(real); count = libssh2_sftp_symlink_ex(sf->sftp, - pv_path, len_path, pv_real, MAXPATHLEN, LIBSSH2_SFTP_READLINK); + pv_path, len_path, pv_real, MAXPATHLEN, LIBSSH2_SFTP_REALPATH); if (count < 0) { SvREFCNT_dec(real); -- Hugues Lafarge || Email: Hug...@af... Agence France Presse || Phone: +33 1 40 41 77 15 4 rue de la bourse, 75002 Paris || Fax: +33 1 40 41 79 24 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- This e-mail, and any file transmitted with it, is confidential and intended solely for the use of the individual or entity to whom it is addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email. For more information on Agence France-Presse, please visit our web site at http://www.afp.com -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- |