mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 08:25:20 +09:00
creds-util: Improve one log message
This commit is contained in:
@@ -853,7 +853,8 @@ int encrypt_credential_and_warn(
|
||||
CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC_SCOPED,
|
||||
CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC_WITH_PK_SCOPED)) {
|
||||
if (!uid_is_valid(uid))
|
||||
return log_error_errno(SYNTHETIC_ERRNO(EINVAL), "Scoped credential selected, but no UID specified.");
|
||||
return log_error_errno(SYNTHETIC_ERRNO(EINVAL),
|
||||
"Scoped credential key type "SD_ID128_FORMAT_STR" selected, but no UID specified.", SD_ID128_FORMAT_VAL(with_key));
|
||||
} else
|
||||
uid = UID_INVALID;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user