1
0
Fork 0
mirror of https://github.com/restic/restic.git synced 2024-12-29 11:16:31 +00:00
Commit graph

1 commit

Author SHA1 Message Date
Matt LaPlante
0ba9d4ced7 Refactor file handing for self-update.
* 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.
2022-04-09 21:40:33 +02:00