core: unset HOME=/ that the kernel gives us
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 21 May 2019 17:26:12 +0000 (19:26 +0200)
committerRaspbian forward porter <root@raspbian.org>
Sat, 13 Jul 2019 01:30:09 +0000 (02:30 +0100)
commit1600e18b96884cd301e0f3791f35b9b7aa42f6d8
treed25340c24ad954a9e459c9a7b76c9eca65605aec
parentc2c4fcd3af374af1b9b71b5d2981a0cd16adea9e
core: unset HOME=/ that the kernel gives us

Partially fixes #12389.

%h would return "/" in a machine, but "/root" in a container. Let's fix
this by resetting $HOME to the expected value.

(cherry picked from commit 9d48671c62de133a2b9fe7c31e70c0ff8e68f2db)

Gbp-Pq: Name core-unset-HOME-that-the-kernel-gives-us.patch
src/core/main.c