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>
Mon, 27 Apr 2020 17:02:57 +0000 (18:02 +0100)
commit8e267bd472b31e92b0672328f73b0d3714602f69
tree9e0cd79d1e00e31f014aade7d25ca1819477dfb9
parentdc7c0cb43bf9f77565fc0535023d6b376da73db9
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