Update MINA SSHD to 0.5.1-r1031886
The new version contains a work-around for failed sftp connections, resolving a common NullPointerException error in server error logs. Change-Id: Iebe667e8cd81cb79848833e2a5de68447fcd42fa Signed-off-by: Shawn O. Pearce <sop@google.com>
This commit is contained in:
parent
54880b5b5b
commit
7f9e1e1326
|
@ -58,8 +58,11 @@ import org.apache.sshd.common.util.Buffer;
|
|||
import org.apache.sshd.common.util.SecurityUtils;
|
||||
import org.apache.sshd.server.Command;
|
||||
import org.apache.sshd.server.CommandFactory;
|
||||
import org.apache.sshd.server.FileSystemFactory;
|
||||
import org.apache.sshd.server.FileSystemView;
|
||||
import org.apache.sshd.server.ForwardingFilter;
|
||||
import org.apache.sshd.server.PublickeyAuthenticator;
|
||||
import org.apache.sshd.server.SshFile;
|
||||
import org.apache.sshd.server.UserAuth;
|
||||
import org.apache.sshd.server.auth.UserAuthPublicKey;
|
||||
import org.apache.sshd.server.channel.ChannelDirectTcpip;
|
||||
|
@ -136,6 +139,7 @@ public class SshDaemon extends SshServer implements SshInfo, LifecycleListener {
|
|||
initSignatures();
|
||||
initChannels();
|
||||
initForwardingFilter();
|
||||
initFileSystemFactory();
|
||||
initSubsystems();
|
||||
initCompression();
|
||||
initUserAuth(userAuth);
|
||||
|
@ -485,4 +489,17 @@ public class SshDaemon extends SshServer implements SshInfo, LifecycleListener {
|
|||
}
|
||||
});
|
||||
}
|
||||
|
||||
private void initFileSystemFactory() {
|
||||
setFileSystemFactory(new FileSystemFactory() {
|
||||
@Override
|
||||
public FileSystemView createFileSystemView(String userName) {
|
||||
return new FileSystemView() {
|
||||
@Override
|
||||
public SshFile getFile(String file) {
|
||||
return null;
|
||||
}};
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue