1
0
mirror of https://github.com/rclone/rclone.git synced 2026-01-28 23:35:47 +00:00

Compare commits

..

5 Commits

Author SHA1 Message Date
Nick Craig-Wood
4dfcf6899d Version v1.56.2 2021-10-01 18:07:47 +01:00
Nolan Woods
81b3075e9d lib/http: Add auth to http service
Fixes https://github.com/rclone/rclone/issues/5620
2021-10-01 17:19:02 +01:00
Ivan Andreev
f988773230 ftp: fix deadlock after failed update when concurrency=1 2021-10-01 17:17:10 +01:00
Nick Craig-Wood
e75d57d638 Start v1.56.2-DEV development 2021-09-23 17:22:53 +01:00
Herby Gillot
0e26fda001 build: update golang.org/x/sys to fix crash on macOS when compiled with go1.17
Updates the golang.org/x/sys module to prevent a panic on startup on macOS when built with Go 1.17

This is for the stable branch only

Fixes: #5611
2021-09-23 17:22:10 +01:00
13 changed files with 84 additions and 15 deletions

17
MANUAL.html generated
View File

@@ -17,7 +17,7 @@
<header id="title-block-header">
<h1 class="title">rclone(1) User Manual</h1>
<p class="author">Nick Craig-Wood</p>
<p class="date">Sep 19, 2021</p>
<p class="date">Oct 01, 2021</p>
</header>
<h1 id="rclone-syncs-your-files-to-cloud-storage">Rclone syncs your files to cloud storage</h1>
<p><img width="50%" src="https://rclone.org/img/logo_on_light__horizontal_color.svg" alt="rclone logo" style="float:right; padding: 5px;" ></p>
@@ -7243,7 +7243,7 @@ Showing nodes accounting for 1537.03kB, 100% of 1537.03kB total
--use-json-log Use json log format.
--use-mmap Use mmap allocator (see docs).
--use-server-modtime Use server modified time instead of object metadata
--user-agent string Set the user-agent to a specified string. The default is rclone/ version (default &quot;rclone/v1.56.1&quot;)
--user-agent string Set the user-agent to a specified string. The default is rclone/ version (default &quot;rclone/v1.56.2&quot;)
-v, --verbose count Print lots more stuff (repeat for more)</code></pre>
<h2 id="backend-flags">Backend Flags</h2>
<p>These flags are available for every command. They control the backends and may be set in the config file.</p>
@@ -21314,6 +21314,19 @@ $ tree /tmp/b
<li>"error": return an error based on option value</li>
</ul>
<h1 id="changelog">Changelog</h1>
<h2 id="v1.56.2---2021-10-01">v1.56.2 - 2021-10-01</h2>
<p><a href="https://github.com/rclone/rclone/compare/v1.56.1...v1.56.2">See commits</a></p>
<ul>
<li>Bug Fixes
<ul>
<li>serve http: Re-add missing auth to http service (Nolan Woods)</li>
<li>build: Update golang.org/x/sys to fix crash on macOS when compiled with go1.17 (Herby Gillot)</li>
</ul></li>
<li>FTP
<ul>
<li>Fix deadlock after failed update when concurrency=1 (Ivan Andreev)</li>
</ul></li>
</ul>
<h2 id="v1.56.1---2021-09-19">v1.56.1 - 2021-09-19</h2>
<p><a href="https://github.com/rclone/rclone/compare/v1.56.0...v1.56.1">See commits</a></p>
<ul>

14
MANUAL.md generated
View File

@@ -1,6 +1,6 @@
% rclone(1) User Manual
% Nick Craig-Wood
% Sep 19, 2021
% Oct 01, 2021
# Rclone syncs your files to cloud storage
@@ -12650,7 +12650,7 @@ These flags are available for every command.
--use-json-log Use json log format.
--use-mmap Use mmap allocator (see docs).
--use-server-modtime Use server modified time instead of object metadata
--user-agent string Set the user-agent to a specified string. The default is rclone/ version (default "rclone/v1.56.1")
--user-agent string Set the user-agent to a specified string. The default is rclone/ version (default "rclone/v1.56.2")
-v, --verbose count Print lots more stuff (repeat for more)
```
@@ -30711,6 +30711,16 @@ Options:
# Changelog
## v1.56.2 - 2021-10-01
[See commits](https://github.com/rclone/rclone/compare/v1.56.1...v1.56.2)
* Bug Fixes
* serve http: Re-add missing auth to http service (Nolan Woods)
* build: Update golang.org/x/sys to fix crash on macOS when compiled with go1.17 (Herby Gillot)
* FTP
* Fix deadlock after failed update when concurrency=1 (Ivan Andreev)
## v1.56.1 - 2021-09-19
[See commits](https://github.com/rclone/rclone/compare/v1.56.0...v1.56.1)

17
MANUAL.txt generated
View File

@@ -1,6 +1,6 @@
rclone(1) User Manual
Nick Craig-Wood
Sep 19, 2021
Oct 01, 2021
@@ -12805,7 +12805,7 @@ These flags are available for every command.
--use-json-log Use json log format.
--use-mmap Use mmap allocator (see docs).
--use-server-modtime Use server modified time instead of object metadata
--user-agent string Set the user-agent to a specified string. The default is rclone/ version (default "rclone/v1.56.1")
--user-agent string Set the user-agent to a specified string. The default is rclone/ version (default "rclone/v1.56.2")
-v, --verbose count Print lots more stuff (repeat for more)
@@ -30855,6 +30855,19 @@ Options:
CHANGELOG
v1.56.2 - 2021-10-01
See commits
- Bug Fixes
- serve http: Re-add missing auth to http service (Nolan Woods)
- build: Update golang.org/x/sys to fix crash on macOS when
compiled with go1.17 (Herby Gillot)
- FTP
- Fix deadlock after failed update when concurrency=1 (Ivan
Andreev)
v1.56.1 - 2021-09-19
See commits

View File

@@ -1 +1 @@
v1.56.1
v1.56.2

View File

@@ -1062,8 +1062,9 @@ func (o *Object) Update(ctx context.Context, in io.Reader, src fs.ObjectInfo, op
}
if err != nil {
_ = c.Quit() // toss this connection to avoid sync errors
remove()
// recycle connection in advance to let remove() find free token
o.fs.putFtpConnection(nil, err)
remove()
return errors.Wrap(err, "update stor")
}
o.fs.putFtpConnection(&c, nil)

View File

@@ -96,6 +96,9 @@ func newServer(f fs.Fs, templatePath string) *server {
}
func (s *server) Bind(router chi.Router) {
if m := auth.Auth(auth.Opt); m != nil {
router.Use(m)
}
router.Use(
middleware.SetHeader("Accept-Ranges", "bytes"),
middleware.SetHeader("Server", "rclone/"+fs.Version),

View File

@@ -5,6 +5,16 @@ description: "Rclone Changelog"
# Changelog
## v1.56.2 - 2021-10-01
[See commits](https://github.com/rclone/rclone/compare/v1.56.1...v1.56.2)
* Bug Fixes
* serve http: Re-add missing auth to http service (Nolan Woods)
* build: Update golang.org/x/sys to fix crash on macOS when compiled with go1.17 (Herby Gillot)
* FTP
* Fix deadlock after failed update when concurrency=1 (Ivan Andreev)
## v1.56.1 - 2021-09-19
[See commits](https://github.com/rclone/rclone/compare/v1.56.0...v1.56.1)

View File

@@ -154,7 +154,7 @@ These flags are available for every command.
--use-json-log Use json log format.
--use-mmap Use mmap allocator (see docs).
--use-server-modtime Use server modified time instead of object metadata
--user-agent string Set the user-agent to a specified string. The default is rclone/ version (default "rclone/v1.56.1")
--user-agent string Set the user-agent to a specified string. The default is rclone/ version (default "rclone/v1.56.2")
-v, --verbose count Print lots more stuff (repeat for more)
```

View File

@@ -1 +1 @@
v1.56.1
v1.56.2

View File

@@ -1,4 +1,4 @@
package fs
// Version of rclone
var Version = "v1.56.1-DEV"
var Version = "v1.56.2-DEV"

2
go.mod
View File

@@ -75,7 +75,7 @@ require (
golang.org/x/net v0.0.0-20210415231046-e915ea6b2b7d
golang.org/x/oauth2 v0.0.0-20210413134643-5e61552d6c78
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c
golang.org/x/sys v0.0.0-20210423185535-09eb48e85fd7
golang.org/x/sys v0.0.0-20210818153620-00dd8d7831e7
golang.org/x/term v0.0.0-20210406210042-72f3dc4e9b72 // indirect
golang.org/x/text v0.3.6
golang.org/x/time v0.0.0-20210220033141-f8bda1e9f3ba

3
go.sum
View File

@@ -895,8 +895,9 @@ golang.org/x/sys v0.0.0-20210316164454-77fc1eacc6aa/go.mod h1:h1NjWce9XRLGQEsW7w
golang.org/x/sys v0.0.0-20210320140829-1e4c9ba3b0c4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20210330210617-4fbd30eecc44/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20210403161142-5e06dd20ab57/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20210423185535-09eb48e85fd7 h1:iGu644GcxtEcrInvDsQRCwJjtCIOlT2V7IRt6ah2Whw=
golang.org/x/sys v0.0.0-20210423185535-09eb48e85fd7/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20210818153620-00dd8d7831e7 h1:/bmDWM82ZX7TawqxuI8kVjKI0TXHdSY6pHJArewwHtU=
golang.org/x/sys v0.0.0-20210818153620-00dd8d7831e7/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/term v0.0.0-20201117132131-f5c789dd3221/go.mod h1:Nr5EML6q2oocZ2LXRh80K7BxOlk5/8JxuGnuhpl+muw=
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
golang.org/x/term v0.0.0-20210406210042-72f3dc4e9b72 h1:VqE9gduFZ4dbR7XoL77lHFp0/DyDUBKSXK7CMFkVcV0=

22
rclone.1 generated
View File

@@ -1,7 +1,7 @@
.\"t
.\" Automatically generated by Pandoc 2.5
.\"
.TH "rclone" "1" "Sep 19, 2021" "User Manual" ""
.TH "rclone" "1" "Oct 01, 2021" "User Manual" ""
.hy
.SH Rclone syncs your files to cloud storage
.PP
@@ -17104,7 +17104,7 @@ These flags are available for every command.
\-\-use\-json\-log Use json log format.
\-\-use\-mmap Use mmap allocator (see docs).
\-\-use\-server\-modtime Use server modified time instead of object metadata
\-\-user\-agent string Set the user\-agent to a specified string. The default is rclone/ version (default \[dq]rclone/v1.56.1\[dq])
\-\-user\-agent string Set the user\-agent to a specified string. The default is rclone/ version (default \[dq]rclone/v1.56.2\[dq])
\-v, \-\-verbose count Print lots more stuff (repeat for more)
\f[R]
.fi
@@ -41883,6 +41883,24 @@ Options:
.IP \[bu] 2
\[dq]error\[dq]: return an error based on option value
.SH Changelog
.SS v1.56.2 \- 2021\-10\-01
.PP
See commits (https://github.com/rclone/rclone/compare/v1.56.1...v1.56.2)
.IP \[bu] 2
Bug Fixes
.RS 2
.IP \[bu] 2
serve http: Re\-add missing auth to http service (Nolan Woods)
.IP \[bu] 2
build: Update golang.org/x/sys to fix crash on macOS when compiled with
go1.17 (Herby Gillot)
.RE
.IP \[bu] 2
FTP
.RS 2
.IP \[bu] 2
Fix deadlock after failed update when concurrency=1 (Ivan Andreev)
.RE
.SS v1.56.1 \- 2021\-09\-19
.PP
See commits (https://github.com/rclone/rclone/compare/v1.56.0...v1.56.1)