Merge pull request #1653 from restic/fix-1652

lock: Ignore invalid lock file
This commit is contained in:
Alexander Neumann
2018-03-05 20:49:03 +01:00
2 changed files with 18 additions and 16 deletions

View File

@@ -0,0 +1,9 @@
Bugfix: Ignore/remove invalid lock files
This corrects a bug introduced recently: When an invalid lock file in the repo
is encountered (e.g. if the file is empty), the code used to ignore that, but
now returns the error. Now, invalid files are ignored for the normal lock
check, and removed when `restic unlock --remove-all` is run.
https://github.com/restic/restic/issues/1652
https://github.com/restic/restic/pull/1653