mirror of
https://github.com/systemd/systemd.git
synced 2024-12-25 01:34:28 +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)
|
||||
return true;
|
||||
|
||||
if (streq(c->user, "root") || streq(c->user, "0"))
|
||||
if (STR_IN_SET(c->user, "root", "0"))
|
||||
return true;
|
||||
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user