2
2
mirror of https://github.com/octoleo/restic.git synced 2024-12-22 10:58:55 +00:00

Fix panic when file name is too short

Closes #1204
This commit is contained in:
Alexander Neumann 2017-09-09 10:50:32 +02:00
parent b46774be21
commit 1e48141648

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)