1
0
Fork 0
mirror of https://github.com/restic/restic.git synced 2024-12-27 10:17:58 +00:00
restic/internal/restic
Alexander Neumann d8dcbc89d1 lock: Ignore invalid lock file
This commit fixes a bug introduced in
e9ea268847: When an invalid lock 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.

Closes #1652
2018-03-05 20:19:57 +01:00
..
testdata
backend.go backend: Improve Save() 2018-03-03 15:49:44 +01:00
backend_find.go
backend_find_test.go
blob.go
blob_set.go
blob_test.go
buffer.go
cache.go
config.go
config_test.go
doc.go
file.go
file_test.go
find.go
find_test.go
hardlinks_index.go
hardlinks_index_test.go
id.go
id_int_test.go
id_test.go
ids.go
ids_test.go
idset.go
idset_test.go
lock.go lock: Ignore invalid lock file 2018-03-05 20:19:57 +01:00
lock_test.go
lock_unix.go
lock_windows.go
node.go
node_darwin.go
node_freebsd.go
node_linux.go
node_openbsd.go
node_solaris.go Add support for illumos/Solaris 2018-03-04 20:11:29 +00:00
node_test.go
node_unix.go
node_unix_test.go
node_windows.go
node_xattr.go Add support for illumos/Solaris 2018-03-04 20:11:29 +00:00
progress.go
progress_unix.go Add support for illumos/Solaris 2018-03-04 20:11:29 +00:00
progress_unix_with_siginfo.go
rand_reader.go
readerat.go
repository.go
restorer.go
restorer_test.go
rewind_reader.go Use int64 for the length in the RewindReader 2018-03-04 10:40:42 +01:00
rewind_reader_test.go Use int64 for the length in the RewindReader 2018-03-04 10:40:42 +01:00
snapshot.go
snapshot_find.go
snapshot_policy.go
snapshot_policy_test.go
snapshot_test.go
tag_list.go
testing.go
testing_test.go
tree.go
tree_test.go