Hello,
I think I found a bug in ChannelSftp.glob_remote(String).
The problem is, that when doing
channelSftp.stat("/C")
the glob_remote operation translates this into
channelSftp.stat("//C")
which is invalid on cygwin-based (and other, e.g. VxWorks) Sftp servers.
The bug is in SftpFileService line 2103:
if(!pattern_has_wildcard){
v.addElement(dir+"/"+Util.unquote(_pattern));
return v;
}
which I think should look like this:
if(!pattern_has_wildcard){
v.addElement( (foo==0 ? dir : dir+"/") +Util.unquote(_pattern));
return v;
}
The bug is also recorded in
https://bugs.eclipse.org/bugs/show_bug.cgi?id=208912#c4
I cannot currently think of any workaround to that issue in client code.
Would you consider a patch for the next Jsch version?
Thanks,
--
Martin Oberhuber
Wind River Systems, Inc.
Target Management Project Lead, DSDP PMC Member
http://www.eclipse.org/dsdp/tm
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
JSch-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jsch-users