cryptsetup: honour configured ask password flags also when activating via token

See: #28665 (this is not a fix for that PR though)
This commit is contained in:
Lennart Poettering
2023-11-02 22:37:46 +01:00
parent c50a7776c1
commit 58925605e7
+1 -1
View File
@@ -1182,7 +1182,7 @@ static int crypt_activate_by_token_pin_ask_password(
const char *credential_name) {
#if HAVE_LIBCRYPTSETUP_PLUGINS
AskPasswordFlags flags = ASK_PASSWORD_PUSH_CACHE | ASK_PASSWORD_ACCEPT_CACHED;
AskPasswordFlags flags = arg_ask_password_flags | ASK_PASSWORD_PUSH_CACHE | ASK_PASSWORD_ACCEPT_CACHED;
_cleanup_strv_free_erase_ char **pins = NULL;
int r;