core/execute: use STR_IN_SET where appropriate

This commit is contained in:
Mike Yuan
2024-03-23 01:27:09 +08:00
parent 1b5f3f5662
commit 8f0646da09
+1 -1
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;