coredump: use uid_is_system() when appropriate

This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2020-09-25 16:09:00 +02:00
parent 98dcb8f4c7
commit 28add648a8
1 changed files with 1 additions and 1 deletions

View File

@ -683,7 +683,7 @@ static int change_uid_gid(const Context *context) {
if (r < 0)
return r;
if (uid <= SYSTEM_UID_MAX) {
if (uid_is_system(uid)) {
const char *user = "systemd-coredump";
r = get_user_creds(&user, &uid, &gid, NULL, NULL, 0);