#56 Lstat on ChannelSftp look for remote path

open
nobody
None
5
2012-11-11
2012-11-11
Diego Salvi
No

This is a very little annoying bug. I've noticed it only playing around with lstat and stat ChannelSftp commands.

Lstat implementation resolve the path given to absoulte as a remote path (it should be a local one... "local stat").

public SftpATTRS lstat(String path) throws SftpException{
try{
((MyPipedInputStream)io_in).updateReadSide();

path=remoteAbsolutePath(path); // Line 2042 of ChannelSftp
path=isUnique(path);
...

Just change the call to:
path=localAbsolutePath(path);

Tested on 0.1.48 and 0.1.49

Discussion


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks