mirror of
https://github.com/octoleo/restic.git
synced 2024-11-09 14:50:56 +00:00
Merge pull request #1220 from restic/fix-1204
Fix panic when file name is too short
This commit is contained in:
commit
5c75a98053
@ -123,7 +123,7 @@ func SearchKey(ctx context.Context, s *Repository, password string, maxKeys int)
|
||||
return nil, ErrMaxKeysReached
|
||||
}
|
||||
|
||||
debug.Log("trying key %v", name[:12])
|
||||
debug.Log("trying key %q", name)
|
||||
key, err := OpenKey(ctx, s, name, password)
|
||||
if err != nil {
|
||||
debug.Log("key %v returned error %v", name[:12], err)
|
||||
|
Loading…
Reference in New Issue
Block a user