mirror of
https://github.com/systemd/systemd.git
synced 2025-01-13 17:18:18 +03:00
core/execute: use STR_IN_SET where appropriate
This commit is contained in:
parent
1b5f3f5662
commit
8f0646da09
@ -1403,7 +1403,7 @@ bool exec_context_maintains_privileges(const ExecContext *c) {
|
|||||||
if (!c->user)
|
if (!c->user)
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
if (streq(c->user, "root") || streq(c->user, "0"))
|
if (STR_IN_SET(c->user, "root", "0"))
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user