1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-26 03:22:00 +03:00

core/execute: use STR_IN_SET where appropriate

This commit is contained in:
Mike Yuan 2024-03-23 01:26:22 +08:00
parent 1b5f3f5662
commit 8f0646da09
No known key found for this signature in database
GPG Key ID: 417471C0A40F58B3

View File

@ -1403,7 +1403,7 @@ bool exec_context_maintains_privileges(const ExecContext *c) {
if (!c->user)
return true;
if (streq(c->user, "root") || streq(c->user, "0"))
if (STR_IN_SET(c->user, "root", "0"))
return true;
return false;