hostnamed: correct variable with errno in fallback_chassis
authorJan Palus <jpalus@fastmail.com>
Wed, 7 Jul 2021 22:23:21 +0000 (00:23 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 20 Jul 2021 12:43:26 +0000 (14:43 +0200)
commitb873f52871845b769f739e9d6954080ba490200c
tree7de02fd86d4b9bd15a9a32e73137288efc08a6e1
parentf6278558da0304ec6b646bb172ce4688c7f162a5
hostnamed: correct variable with errno in fallback_chassis

fixes assertion failure on arm:

systemd-hostnamed[642]: Assertion '(_error) != 0' failed at src/hostname/hostnamed.c:207, function fallback_chassis(). Aborting.

(cherry picked from commit 105a4245ff13d588e1e848e8ee3cffd6185bd0ae)
(cherry picked from commit 4a44597bdd725f504ebd520b0deef7797dc46daa)
src/hostname/hostnamed.c