hostnamed: fix incorrect usage of device_dmi (#36948)

Fix incorrect usage of device_dmi in context_acquire_device_tree().

Follow-up for 3e91aed6c4.
This commit is contained in:
herbrechtsmeier
2025-04-02 21:41:44 +09:00
committed by GitHub
parent 01d1952994
commit c0b3b3af3e
+1 -1
View File
@@ -281,7 +281,7 @@ static int context_acquire_device_tree(Context *c) {
assert(c);
assert(!c->device_tree);
r = sd_device_new_from_path(&c->device_dmi, "/proc/device-tree/");
r = sd_device_new_from_path(&c->device_tree, "/proc/device-tree/");
if (ERRNO_IS_NEG_DEVICE_ABSENT(r)) {
log_debug_errno(r, "Failed to open /proc/device-tree/ device, ignoring: %m");
return 0;