1
0
mirror of https://github.com/systemd/systemd.git synced 2025-03-19 22:50:17 +03:00

execute: debug log if a generated recursive cred name is too long

This commit is contained in:
Lennart Poettering 2022-04-13 18:51:56 +02:00
parent 10b44e1dc1
commit 1451435ca5

View 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);