From 2d20b9e3f45995a313079946dc4640c663938e35 Mon Sep 17 00:00:00 2001 From: Alex Wilson Date: Tue, 19 Mar 2024 18:31:17 +1000 Subject: [PATCH] pivy-tool: silence cardcap warning on uninitd yubikeys --- pivy-tool.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pivy-tool.c b/pivy-tool.c index c32a801..78f98f7 100644 --- a/pivy-tool.c +++ b/pivy-tool.c @@ -453,7 +453,8 @@ cmd_list(void) return (err); assert_select(pk); if ((err = piv_read_cardcap(pk, &cardcap))) { - warnfx(err, "failed to read cardcap"); + if (!errf_caused_by(err, "NotFoundError")) + warnfx(err, "failed to read cardcap"); cardcap = NULL; errf_free(err); }