2
2
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:
Alexander Neumann 2017-09-09 11:49:23 +02:00
commit 5c75a98053

View File

@ -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)