From 617469127a2e18f61d7b4f8b7b96eae5dbf354d8 Mon Sep 17 00:00:00 2001 From: Icelk Date: Thu, 12 Dec 2024 13:45:37 +0100 Subject: [PATCH] ssh agent: fix first start when no .bitwarden-ssh-agent.sock exists (#12356) Co-authored-by: Bernd Schoolmann --- apps/desktop/desktop_native/core/src/ssh_agent/unix.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/desktop/desktop_native/core/src/ssh_agent/unix.rs b/apps/desktop/desktop_native/core/src/ssh_agent/unix.rs index a74c1205b57..ae03421a425 100644 --- a/apps/desktop/desktop_native/core/src/ssh_agent/unix.rs +++ b/apps/desktop/desktop_native/core/src/ssh_agent/unix.rs @@ -65,7 +65,9 @@ impl BitwardenDesktopAgent { "[SSH Agent Native Module] Could not remove existing socket file: {}", e ); - return; + if e.kind() != std::io::ErrorKind::NotFound { + return; + } } match UnixListener::bind(sockname) {