rclone/cmd/serve/sftp
Nick Craig-Wood 50a3a96e27 serve sftp: fix crash on unsupported operations (eg Readlink)
Before this change the sftp handler returned a nil error for unknown
operations which meant the server crashed when one was encountered.

In particular the "Readlink" operations was causing problems.

After this change the handler returns ErrSshFxOpUnsupported which
signals to the remote end that we don't support that operation.

See: https://forum.rclone.org/t/rclone-serve-sftp-not-working-in-windows/12209
2019-10-09 16:12:21 +01:00
..
connection_test.go serve sftp: serve an rclone remote over SFTP 2019-05-11 23:39:04 +01:00
connection.go serve/sftp: support empty "md5sum" and "sha1sum" commands 2019-08-14 20:54:08 +01:00
handler.go serve sftp: fix crash on unsupported operations (eg Readlink) 2019-10-09 16:12:21 +01:00
server.go serve sftp: fix detection of whether server is authorized 2019-08-08 12:37:50 +01:00
sftp_test.go serve: factor out common testing parts for ftp, sftp and webdav tests 2019-08-06 11:43:42 +01:00
sftp_unsupported.go serve sftp: serve an rclone remote over SFTP 2019-05-11 23:39:04 +01:00
sftp.go serve sftp: implement auth proxy 2019-08-06 11:43:42 +01:00