summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2022-04-13 18:51:56 +0200
committerLennart Poettering <lennart@poettering.net>2022-04-22 11:32:46 +0200
commit1451435ca5d43c2e632b7448d45e8b04dc727d62 (patch)
tree2dd8f2d8aa161518df7b79d54fa9b46e3f8bd2b6
parent10b44e1dc1e4263468cda5f8e05008fc737286fc (diff)
downloadsystemd-1451435ca5d43c2e632b7448d45e8b04dc727d62.tar.gz
execute: debug log if a generated recursive cred name is too long
-rw-r--r--src/core/execute.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/execute.c b/src/core/execute.c
index 437d517b71..4cc2446675 100644
--- a/src/core/execute.c
+++ b/src/core/execute.c
@@ -2737,7 +2737,7 @@ static int load_cred_recurse_dir_cb(
return -ENOMEM;
if (!credential_name_valid(sub_id))
- return -EINVAL;
+ return log_debug_errno(SYNTHETIC_ERRNO(EINVAL), "Credential would get ID %s, which is not valid, refusing", sub_id);
if (set_contains(args->seen_creds, sub_id)) {
log_debug("Skipping credential with duplicated ID %s at %s", sub_id, path);