From 527158e482c1ebecf41c33d80b2f68130c8cccf8 Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Fri, 25 Sep 2026 10:24:27 +0200 Subject: [PATCH] Unix: cache the password used for mounting Reuse the prepared password to avoid rereading outer keyfiles after mounting. This prevents post-mount read failures and ensures the cache contains the credential that unlocked the volume. --- src/Core/Unix/CoreServiceProxy.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Core/Unix/CoreServiceProxy.h b/src/Core/Unix/CoreServiceProxy.h index 0e0011a6..37f05c9a 100644 --- a/src/Core/Unix/CoreServiceProxy.h +++ b/src/Core/Unix/CoreServiceProxy.h @@ -170,7 +170,7 @@ namespace VeraCrypt if (!useCachedPasswords && options.CachePassword && ((options.Password && !options.Password->IsEmpty()) || (options.Keyfiles && !options.Keyfiles->empty()))) { - VolumePasswordCache::Store (*Keyfile::ApplyListToPassword (options.Keyfiles, options.Password, options.EMVSupportEnabled)); + VolumePasswordCache::Store (*newOptions.Password); } VolumeEventArgs eventArgs (mountedVolume);