1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-12-22 13:33:56 +03:00

sysusers: raise level of message about UID/GID being already used

It can be quite important that a different value was used, so let's
log this by default.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2021-12-08 11:46:09 +01:00
parent 9a5af4b7ac
commit 5374bc7cb4

View File

@ -1097,7 +1097,7 @@ static int add_user(Item *i) {
if (r < 0)
return log_error_errno(r, "Failed to verify UID " UID_FMT ": %m", i->uid);
if (r == 0) {
log_debug("Suggested user ID " UID_FMT " for %s already used.", i->uid, i->name);
log_info("Suggested user ID " UID_FMT " for %s already used.", i->uid, i->name);
i->uid_set = false;
}
}
@ -1268,7 +1268,7 @@ static int add_group(Item *i) {
return 0;
}
if (r == 0) {
log_debug("Suggested group ID " GID_FMT " for %s already used.", i->gid, i->name);
log_info("Suggested group ID " GID_FMT " for %s already used.", i->gid, i->name);
i->gid_set = false;
}
}