diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 7ec59b17..7fbef349 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -32,7 +32,7 @@ reactiveStreams = "1.0.4" recyclerview = "1.3.2" rxjava = "2.2.21" sl4j = "2.0.4" -sshdCore = "2.12.1" +sshdCore = "2.13.1" swiperefreshlayout = "1.1.0" uiToolingPreview = "1.6.7" univocityParsers = "2.9.1" diff --git a/src/org/kde/kdeconnect/Plugins/SftpPlugin/SimpleSftpServer.kt b/src/org/kde/kdeconnect/Plugins/SftpPlugin/SimpleSftpServer.kt index 8cfb0780..f9d64e67 100644 --- a/src/org/kde/kdeconnect/Plugins/SftpPlugin/SimpleSftpServer.kt +++ b/src/org/kde/kdeconnect/Plugins/SftpPlugin/SimpleSftpServer.kt @@ -12,6 +12,7 @@ import android.util.Log import org.apache.sshd.common.file.nativefs.NativeFileSystemFactory import org.apache.sshd.common.keyprovider.AbstractKeyPairProvider import org.apache.sshd.common.session.SessionContext +import org.apache.sshd.common.util.OsUtils import org.apache.sshd.common.util.io.PathUtils import org.apache.sshd.common.util.security.SecurityUtils.SECURITY_PROVIDER_REGISTRARS import org.apache.sshd.scp.server.ScpCommandFactory @@ -89,7 +90,7 @@ internal class SimpleSftpServer { sshd.commandFactory = ScpCommandFactory() sshd.subsystemFactories = listOf(SftpSubsystemFactory.Builder().apply { - withFileSystemAccessor(object: SftpFileSystemAccessor { + withFileSystemAccessor(object : SftpFileSystemAccessor { override fun openFile( subsystem: SftpSubsystemProxy?, fileHandle: FileHandle?,