forked from TrueCloudLab/restic
0ba9d4ced7
* Write new file payload to a temp file before touching the original binary. Minimizes the possibility of failing mid-write and corrupting the binary. * On Windows, move the original binary out to a temp file rather than removing it as the running binary is locked. Fixes issue #2248.
8 lines
No EOL
346 B
Text
8 lines
No EOL
346 B
Text
Bugfix: Support self-update on Windows
|
|
|
|
Restic self-update would fail in situations where the operating system
|
|
locks running binaries, including Windows. The new behavior works around
|
|
this by renaming the running file and swapping the updated file in place.
|
|
|
|
https://github.com/restic/restic/issues/2248
|
|
https://github.com/restic/restic/pull/3675 |