forked from TrueCloudLab/restic
Merge pull request #1220 from restic/fix-1204
Fix panic when file name is too short
This commit is contained in:
commit
5c75a98053
1 changed files with 1 additions and 1 deletions
|
@ -123,7 +123,7 @@ func SearchKey(ctx context.Context, s *Repository, password string, maxKeys int)
|
||||||
return nil, ErrMaxKeysReached
|
return nil, ErrMaxKeysReached
|
||||||
}
|
}
|
||||||
|
|
||||||
debug.Log("trying key %v", name[:12])
|
debug.Log("trying key %q", name)
|
||||||
key, err := OpenKey(ctx, s, name, password)
|
key, err := OpenKey(ctx, s, name, password)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
debug.Log("key %v returned error %v", name[:12], err)
|
debug.Log("key %v returned error %v", name[:12], err)
|
||||||
|
|
Loading…
Reference in a new issue