2
0
mirror of https://github.com/KDE/kdeconnect-android synced 2025-09-01 22:55:10 +00:00

SftpPlugin: fix SAF implementation for gvfs/ssh

Returning NULL from readSymbolicLink() results in an exception that
closes the SFTP connection for some SSH implementations, notably the one
used by Gvfs (GSConnect).

primitive-ftpd had a similar issue, which was fixed by returning and
empty string instead of NULL.
This commit is contained in:
Andy Holmes
2019-03-21 08:16:47 -07:00
parent 7dc023385e
commit 0453728407

View File

@@ -88,7 +88,7 @@ class RootFile implements SshFile {
} }
public String readSymbolicLink() { public String readSymbolicLink() {
return null; return "";
} }
public void createSymbolicLink(SshFile destination) { public void createSymbolicLink(SshFile destination) {