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

core/execute: use FOREACH_ARRAY in one more place

This commit is contained in:
Mike Yuan 2023-10-08 13:35:30 +08:00
parent 3c1f396f69
commit 59026bccd0
No known key found for this signature in database
GPG Key ID: 417471C0A40F58B3

View File

@ -5259,8 +5259,8 @@ void exec_context_init(ExecContext *c) {
.memory_ksm = -1,
};
for (ExecDirectoryType t = 0; t < _EXEC_DIRECTORY_TYPE_MAX; t++)
c->directories[t].mode = 0755;
FOREACH_ARRAY(d, c->directories, _EXEC_DIRECTORY_TYPE_MAX)
d->mode = 0755;
numa_policy_reset(&c->numa_policy);