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)
committerAdrian Bunk <bunk@debian.org>
Thu, 29 Jun 2023 13:57:02 +0000 (14:57 +0100)
commit23d6c21a1b060dc1635794a3d2d2d6a78f9b13b6
tree6a75daa087566050cfd6d01b7e3cc37baf69f3dc
parent9f0459f8a8a11c2a0681ecbbebef29d1fbf35687
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