rclone/cmd/serve
Nick Craig-Wood 98fd00a655 serve sftp: fix checksum detection - Fixes #6351
Before this change, rclone serve sftp operating with a new rclone
after the md5sum/sha1sum detection was reworked to just run a plain
`md5sum`/`sha1sum` command in

3ea82032e7 sftp: support md5/sha1 with rsync.net #3254

Failed to signal to the remote that md5sum/sha1sum wasn't supported as
in

71e172a139 serve/sftp: support empty "md5sum" and "sha1sum" commands

We unconditionally return good hashes even if the remote being served
doesn't support the hash type in question.

This fix checks the hash type is supported and returns an error

    MD5 hash not supported

When the backend is first contacted this will cause the sftp backend
to detect that the hash type isn't available.

Unfortunately this may have cached the wrong state so editing or
remaking the config may be necessary to fix it.
2022-08-05 17:16:23 +01:00
..
dlna docs: improve serve command descriptions 2022-06-21 23:43:00 +02:00
docker build: reformat comments to pass go1.19 vet 2022-08-05 16:35:41 +01:00
ftp build: reformat comments to pass go1.19 vet 2022-08-05 16:35:41 +01:00
http docs: add missing code section formatting to commands and flags 2022-06-21 23:43:00 +02:00
httplib docs: add missing code section formatting to commands and flags 2022-06-21 23:43:00 +02:00
proxy Fix lint issues reported by staticcheck 2022-06-13 21:13:50 +02:00
restic build: update to go1.19 and make go1.17 the minimum required version 2022-08-03 18:04:58 +01:00
servetest build: apply gofmt from golang 1.17 2021-09-09 20:43:59 +03:00
sftp serve sftp: fix checksum detection - Fixes #6351 2022-08-05 17:16:23 +01:00
webdav docs: improve serve command descriptions 2022-06-21 23:43:00 +02:00
serve.go docs: improve serve command descriptions 2022-06-21 23:43:00 +02:00