]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
execute: debug log if a generated recursive cred name is too long
authorLennart Poettering <lennart@poettering.net>
Wed, 13 Apr 2022 16:51:56 +0000 (18:51 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 22 Apr 2022 09:32:46 +0000 (11:32 +0200)
src/core/execute.c

index 437d517b71829f8bb2d953c5fa2cf140b97902d5..4cc24466753af7243c68c889d888065a4c43123d 100644 (file)
@@ -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);