1
mirror of https://github.com/rclone/rclone synced 2024-11-15 14:57:03 +01:00
rclone/lib
Nick Craig-Wood acf1e2df84 lib/file: fix MkdirAll after go1.21.4 stdlib update
In ths security related issue the go1.21.4 stdlib changed the parsing
of volume names on Windows.

https://github.com/golang/go/issues/63713

This had the consequences of breaking the MkdirAll tests which were
looking for specific error messages which changed and using invalid
paths.

In particular under go1.21.3:

    filepath.VolumeName(`\\?\C:`) == `\\?\C:`

But under go1.21.4 it is:

    filepath.VolumeName(`\\?\C:`) == `\\?`

The path `\\?\C:` isn't actually a valid Windows path. I reported this
as a FYI bug upstream - I'm not expecting it to be fixed.

See: https://github.com/golang/go/issues/64101
2023-11-14 09:47:46 +00:00
..
atexit lib: use atomic types 2023-08-22 12:52:13 +01:00
batcher dropbox: factor batcher into lib/batcher 2023-10-03 18:01:34 +01:00
bucket bucket: add Join function for a simplified path.Join 2023-03-03 15:51:00 +00:00
buildinfo build: fix new lint errors with golangci-lint v1.55.0 2023-10-20 18:53:30 +01:00
cache lib/cache: fix alias backend shutting down too soon 2022-11-09 16:29:23 +00:00
daemonize build: add package comments to silence revive linter 2022-08-28 13:43:51 +02:00
debug build: update to go1.21rc3 and make go1.19 the minimum required version 2023-07-16 10:09:25 +01:00
dircache lib: fix typos found by codespell 2023-03-24 20:40:52 +00:00
diskusage Add lib/diskusage to measure used/free on disks 2023-09-07 15:57:45 +01:00
encoder Replace deprecated ioutil 2022-11-07 11:41:47 +00:00
env docs: punctuation cleanup 2021-10-20 22:56:19 +02:00
errors lib: fix typos found by codespell 2023-03-24 20:40:52 +00:00
exitcode --max-transfer - add new exit code (10) 2023-07-18 09:51:31 +01:00
file lib/file: fix MkdirAll after go1.21.4 stdlib update 2023-11-14 09:47:46 +00:00
http lib/http: export basic go strings functions 2023-10-16 19:46:19 +01:00
israce build: apply gofmt from golang 1.17 2021-09-09 20:43:59 +03:00
jwtutil Use jwt-go (golang-jwt) instead of deprecated jws (x/oauth2/jws) 2023-03-26 19:20:50 +02:00
kv build: add package comments to silence revive linter 2022-08-28 13:43:51 +02:00
mmap build: add package comments to silence revive linter 2022-08-28 13:43:51 +02:00
multipart backends: change OpenChunkWriter interface to allow backend concurrency override 2023-09-03 11:47:05 +01:00
oauthutil lib: use atomic types 2023-08-22 12:52:13 +01:00
pacer pacer: fix b2 deadlock by defaulting max connections to unlimited 2023-10-01 12:30:26 +01:00
plugin Replace deprecated ioutil 2022-11-07 11:41:47 +00:00
pool lib/pool: add DelayAccounting() to fix accounting when reading hashes 2023-08-24 16:42:09 +01:00
proxy build: fix lint errors when re-enabling revive exported & package-comments 2023-08-29 13:03:13 +01:00
random Remove github.com/pkg/errors and replace with std library version 2021-11-07 11:53:30 +00:00
ranges Spelling fixes 2020-10-14 15:21:31 +01:00
readers lib/readers: add NoSeeker to adapt io.Reader to io.ReadSeeker 2023-08-24 12:39:27 +01:00
rest lib/rest: remove unnecessary nil check 2023-08-09 19:17:42 +09:00
structs test: do not test deprecated and unused Dial and DialTLS functions on http Transport type 2023-03-26 14:28:15 +02:00
systemd cmd: refactor and use sysdnotify in more commands 2023-09-04 16:32:04 +01:00
terminal lib: fix typos found by codespell 2023-03-24 20:40:52 +00:00
version Fix lint issues reported by staticcheck 2022-06-13 21:13:50 +02:00