core/namespace: ignore ENOENT for /proc/sys/kernel/domainname and hostname
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 14 Dec 2020 03:37:23 +0000 (12:37 +0900)
committerLuca Boccassi <luca.boccassi@gmail.com>
Mon, 14 Dec 2020 14:15:28 +0000 (14:15 +0000)
commit0ebc9f23faf5586f8a9250c3be08773eb3f8d2da
treea04e248b3c924916feb6d60ebc6d55ef663da933
parent38abd1bfc514bef0eb5580277ed661ebb1c7727e
core/namespace: ignore ENOENT for /proc/sys/kernel/domainname and hostname

If they do not exist, hostname or domainname cannot be modified. So, it is ok.

Fixes #17866, especially https://github.com/systemd/systemd/issues/17866#issuecomment-744118614.
src/core/namespace.c