rclone/backend
Nick Craig-Wood 6ef7178ee4 local: always use readlink to read symlink size
It was discovered on some Android systems, the stat size of a symlink
is different to the size that readlink returns.

This was giving errors like this

    transport connection broken: http: ContentLength=30 with Body length 28

There are enough exceptions to the size of readlink being different to
the size of stat that this patch now always does readlink to work out
the size of a symlink.

Since symlinks are relatively uncommon this shouldn't affect
performance too much and will mean that the size is always correct.

This deprecates the --local-zero-size-links flag which is now
effectively always enabled.

See: https://forum.rclone.org/t/problem-with-symlinks-and-links/23840/
2021-05-04 08:53:09 +01:00
..
alias config: delay load config file (#5258) 2021-04-26 23:37:49 +02:00
all new backend: uptobox 2021-04-13 17:46:07 +02:00
amazonclouddrive backends: remove log.Fatal and replace with error returns #5234 2021-04-27 18:18:08 +01:00
azureblob Use binary prefixes for size and rate units 2021-04-27 02:25:52 +03:00
b2 Use binary prefixes for size and rate units 2021-04-27 02:25:52 +03:00
box backends: remove log.Fatal and replace with error returns #5234 2021-04-27 18:18:08 +01:00
cache backends: remove log.Fatal and replace with error returns #5234 2021-04-27 18:18:08 +01:00
chunker Use binary prefixes for size and rate units 2021-04-27 02:25:52 +03:00
compress Use binary prefixes for size and rate units 2021-04-27 02:25:52 +03:00
crypt crypt: support timestamped filenames from --b2-versions 2021-04-12 15:59:18 +01:00
drive backends: remove log.Fatal and replace with error returns #5234 2021-04-27 18:18:08 +01:00
dropbox backends: remove log.Fatal and replace with error returns #5234 2021-04-27 18:18:08 +01:00
fichier backends: remove log.Fatal and replace with error returns #5234 2021-04-27 18:18:08 +01:00
filefabric Fix excessive retries missing --max-duration timeout - fixes #4504 2021-03-13 09:25:44 +00:00
ftp backend/ftp: fix implicit TLS after PR #4266 (#5219) 2021-04-09 01:43:50 +03:00
googlecloudstorage backends: remove log.Fatal and replace with error returns #5234 2021-04-27 18:18:08 +01:00
googlephotos backends: remove log.Fatal and replace with error returns #5234 2021-04-27 18:18:08 +01:00
hdfs hdfs: fix permissions for when directory is created 2021-03-12 09:15:14 +00:00
http config: delay load config file (#5258) 2021-04-26 23:37:49 +02:00
hubic backends: remove log.Fatal and replace with error returns #5234 2021-04-27 18:18:08 +01:00
jottacloud backends: remove log.Fatal and replace with error returns #5234 2021-04-27 18:18:08 +01:00
koofr Use binary prefixes for size and rate units 2021-04-27 02:25:52 +03:00
local local: always use readlink to read symlink size 2021-05-04 08:53:09 +01:00
mailru backends: remove log.Fatal and replace with error returns #5234 2021-04-27 18:18:08 +01:00
mega backends: Add context checking to remaining backends #4504 2021-03-16 16:17:22 +00:00
memory azureblob,memory,pcloud: fix setting of mime types 2020-11-27 14:40:05 +00:00
onedrive backends: remove log.Fatal and replace with error returns #5234 2021-04-27 18:18:08 +01:00
opendrive Use binary prefixes for size and rate units 2021-04-27 02:25:52 +03:00
pcloud backends: remove log.Fatal and replace with error returns #5234 2021-04-27 18:18:08 +01:00
premiumizeme backends: remove log.Fatal and replace with error returns #5234 2021-04-27 18:18:08 +01:00
putio backends: remove log.Fatal and replace with error returns #5234 2021-04-27 18:18:08 +01:00
qingstor Use binary prefixes for size and rate units 2021-04-27 02:25:52 +03:00
s3 s3: add --s3-no-head-object 2021-04-28 11:05:54 +01:00
seafile backends: remove log.Fatal and replace with error returns #5234 2021-04-27 18:18:08 +01:00
sftp sftp: Fix performance regression by re-enabling concurrent writes #5197 2021-04-26 09:24:28 +01:00
sharefile backends: remove log.Fatal and replace with error returns #5234 2021-04-27 18:18:08 +01:00
sugarsync backends: remove log.Fatal and replace with error returns #5234 2021-04-27 18:18:08 +01:00
swift Use binary prefixes for size and rate units 2021-04-27 02:25:52 +03:00
tardigrade backends: remove log.Fatal and replace with error returns #5234 2021-04-27 18:18:08 +01:00
union union: fix initialisation broken in refactor - fixes #5139 2021-03-24 09:47:38 +00:00
uptobox backends: remove log.Fatal and replace with error returns #5234 2021-04-27 18:18:08 +01:00
webdav webdav: fix sharepoint auth over http - fixes #4418 2021-04-10 11:59:56 +01:00
yandex backends: remove log.Fatal and replace with error returns #5234 2021-04-27 18:18:08 +01:00
zoho backends: remove log.Fatal and replace with error returns #5234 2021-04-27 18:18:08 +01:00