From: Yu Watanabe Date: Sat, 18 May 2024 23:46:43 +0000 (+0900) Subject: machine-id-setup: use empty_or_root() X-Git-Tag: v256-rc3~29^2~1 X-Git-Url: http://git-history.diyao.me/?a=commitdiff_plain;h=ba540e9f1c29b430ac916918410c27171d14ab95;p=systemd%2F.git machine-id-setup: use empty_or_root() --- diff --git a/src/shared/machine-id-setup.c b/src/shared/machine-id-setup.c index df99b0b009..8dab2ad428 100644 --- a/src/shared/machine-id-setup.c +++ b/src/shared/machine-id-setup.c @@ -61,7 +61,7 @@ static int generate_machine_id(const char *root, sd_id128_t *ret) { return 0; } - if (isempty(root) && running_in_chroot() <= 0) { + if (empty_or_root(root) && running_in_chroot() <= 0) { /* Let's use a system credential for the machine ID if we can */ r = acquire_machine_id_from_credential(ret); if (r >= 0)