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)
committerAdrian Bunk <bunk@debian.org>
Thu, 30 Mar 2023 19:32:31 +0000 (20:32 +0100)
commitfb03651380b9de2e35499fb94be203ec29c95aef
treee5d71d4668ba268ca901f837f812d9ecaea8cebf
parent5c2e7a93cbf09110977be9c6fb66088739545e28
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