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)
committerMichael Biebl <biebl@debian.org>
Thu, 18 Mar 2021 19:59:14 +0000 (19:59 +0000)
commit99ca9f751ba10194fd859ce369caaa605c48879f
tree5fb3b87c405f1aa97c6550b456b7a7adcd42a37d
parentacf1e57c3d5a4d79043ec369e7a7a4012cec3615
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
(cherry picked from commit 206e9864de460dd79d9edd7bedb47dee168765e1)

Gbp-Pq: Name core-change-ownership-mode-of-the-execution-directories-a.patch
src/core/execute.c