mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-11 19:00:02 +01:00
Unify error code for missing key description.
Use -ESRCH for similar error code as with crypt_activate_by_keyslot_context. Here it's not confliciting with previous use for the very code but let's make it easier and use same code for similar case.
This commit is contained in:
@@ -7835,7 +7835,7 @@ int crypt_set_keyring_to_link(struct crypt_device *cd, const char *key_descripti
|
||||
|
||||
user_descriptions_count = (key_description ? 1 : 0) + (old_key_description ? 1 : 0);
|
||||
if (user_descriptions_count != 0 && vks_count > user_descriptions_count)
|
||||
return -EAGAIN;
|
||||
return -ESRCH;
|
||||
|
||||
if (keyring_to_link_vk) {
|
||||
id = keyring_find_keyring_id_by_name(keyring_to_link_vk);
|
||||
|
||||
Reference in New Issue
Block a user