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)
committerMichael Biebl <biebl@debian.org>
Wed, 4 Sep 2019 17:34:17 +0000 (18:34 +0100)
commit059597dddad0fdfd4c0b99f16b4c778a740d9811
tree7e42676c79d80fdaa69bc12b4fa0fa5f89d002c3
parent7a1a896a7527c952326096665d5cee1898ece797
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