diff options
| author | 2025-11-06 19:36:17 +0000 | |
|---|---|---|
| committer | 2025-11-06 19:36:17 +0000 | |
| commit | a6b45356fdc0e96230296313f843404cda5796a3 (patch) | |
| tree | 671eac5e2df93c5b2f6871140617e2ebbebdee67 | |
| parent | spectal,kpipewire: drop patches (diff) | |
| download | misc-patches-a6b45356fdc0e96230296313f843404cda5796a3.tar.xz | |
| -rw-r--r-- | sys-auth/yubikey-agent-0.1.6/0001-report-zero-identities-if-no-cards-are-available.patch | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/sys-auth/yubikey-agent-0.1.6/0001-report-zero-identities-if-no-cards-are-available.patch b/sys-auth/yubikey-agent-0.1.6/0001-report-zero-identities-if-no-cards-are-available.patch new file mode 100644 index 0000000..e295c65 --- /dev/null +++ b/sys-auth/yubikey-agent-0.1.6/0001-report-zero-identities-if-no-cards-are-available.patch @@ -0,0 +1,27 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Terin Stock <terinjokes@gmail.com> +Date: Thu, 6 Nov 2025 16:42:52 +0000 +Subject: [PATCH] report zero identities if no cards are available + +If no cards can be opened, report zero identities in response to +SSH_AGENTC_REQUEST_IDENTITIES rather than reporting SSH_AGENT_FAILURE. +--- + main.go | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/main.go b/main.go +index f50d239..3df4f3b 100644 +--- a/main.go ++++ b/main.go +@@ -227,7 +227,7 @@ func (a *Agent) List() ([]*agent.Key, error) { + a.mu.Lock() + defer a.mu.Unlock() + if err := a.ensureYK(); err != nil { +- return nil, fmt.Errorf("could not reach YubiKey: %w", err) ++ return []*agent.Key{}, nil + } + defer a.maybeReleaseYK() + +-- +2.51.0 + |
