core: change ownership/mode of the execution directories also for static users
authorLennart Poettering <lennart@poettering.net>
Thu, 14 Mar 2019 16:19:30 +0000 (17:19 +0100)
committerLennart Poettering <lennart@poettering.net>
Tue, 19 Mar 2019 15:57:33 +0000 (16:57 +0100)
commit206e9864de460dd79d9edd7bedb47dee168765e1
tree98f82d2f3dd1cef7fe768a5c61a4dd7a5dde75d7
parentd484580ca6f0e79abe6f3f5c677323a22d9e22d7
core: change ownership/mode of the execution directories also for static users

It's probably unexpected if we do a recursive chown() when dynamic users
are used but not on static users.

hence, let's tweak the logic slightly, and recursively chown in both
cases, except when operating on the configuration directory.

Fixes: #11842
src/core/execute.c