From d7f5e6f48ea85442b41330de63b7fd05835c4469 Mon Sep 17 00:00:00 2001 From: robin Date: Thu, 12 Dec 2019 14:06:07 +0200 Subject: [PATCH 1/2] Fix broken link in README Signed-off-by: robin --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 4224832..e6b43d0 100644 --- a/README.md +++ b/README.md @@ -143,4 +143,4 @@ Thanks to: See [LICENSE](LICENSE) file. -[SecretService]: https://standards.freedesktop.org/secret-service/ +[SecretService]: https://specifications.freedesktop.org/secret-service/latest/ From db665d28bb88c7f26e1e4e7989747248b538c708 Mon Sep 17 00:00:00 2001 From: Rene Hollander Date: Mon, 16 Dec 2019 16:26:49 +0100 Subject: [PATCH 2/2] Fixes error when the default collection is opened. When the default collection is opened the returned collection name is the actual name and not the alias. This happens when the collection is not named `login` and the default should be used. Signed-off-by: Rene Hollander --- secret_service/secret_service.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/secret_service/secret_service.go b/secret_service/secret_service.go index 2a0791a..591c976 100644 --- a/secret_service/secret_service.go +++ b/secret_service/secret_service.go @@ -121,7 +121,7 @@ func (s *SecretService) Unlock(collection dbus.ObjectPath) error { unlocked = append(unlocked, c...) } - if len(unlocked) != 1 || unlocked[0] != collection { + if len(unlocked) != 1 || (collection != loginCollectionAlias && unlocked[0] != collection) { return fmt.Errorf("failed to unlock correct collection '%v'", collection) }