diff options
author | Lennart Poettering <lennart@poettering.net> | 2019-03-07 11:00:40 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2019-03-12 16:10:55 +0100 |
commit | 9e73208afc7cf8dbeb4733e08b93393cc8f2ce8a (patch) | |
tree | 6678d8c88e5a5f4ed8c0748b339e24872fbd15b0 /src/core/execute.c | |
parent | execute: simplify paths we set as HOME/SHELL for invoked programs (diff) | |
download | systemd-9e73208afc7cf8dbeb4733e08b93393cc8f2ce8a.tar.xz systemd-9e73208afc7cf8dbeb4733e08b93393cc8f2ce8a.zip |
execute: no need to synthesize $HOME for uid==0 again, get_home_dir() already does that
Diffstat (limited to '')
-rw-r--r-- | src/core/execute.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/core/execute.c b/src/core/execute.c index d74affebb3..fb7564b9fe 100644 --- a/src/core/execute.c +++ b/src/core/execute.c @@ -2742,12 +2742,6 @@ static int acquire_home(const ExecContext *c, uid_t uid, const char** home, char if (!c->working_directory_home) return 0; - if (uid == 0) { - /* Hardcode /root as home directory for UID 0 */ - *home = "/root"; - return 1; - } - r = get_home_dir(buf); if (r < 0) return r; |