diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2022-12-08 14:30:31 +0900 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2022-12-12 21:57:31 +0900 |
commit | 057bf780e9d45480fbacdd3b060dbe37b37f9693 (patch) | |
tree | 4d610e28b18e2fd36ff68c024619398c3e68bc68 /src/machine-id-setup | |
parent | 28bf2de201e890193b57accbf736c7d3d82d813a (diff) | |
download | systemd-057bf780e9d45480fbacdd3b060dbe37b37f9693.tar.gz |
sd-id128: make id128_read() or friends return -ENOPKG when the file contents is "uninitialized"
Then, this drops ID128_PLAIN_OR_UNINIT. Also, this renames
Id128Format -> Id128FormatFlag, and make it bitfield.
Fixes #25634.
Diffstat (limited to 'src/machine-id-setup')
-rw-r--r-- | src/machine-id-setup/machine-id-setup-main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/machine-id-setup/machine-id-setup-main.c b/src/machine-id-setup/machine-id-setup-main.c index 6aef48650d..9101f4e11a 100644 --- a/src/machine-id-setup/machine-id-setup-main.c +++ b/src/machine-id-setup/machine-id-setup-main.c @@ -164,7 +164,7 @@ static int run(int argc, char *argv[]) { return r; etc_machine_id = prefix_roota(arg_root, "/etc/machine-id"); - r = id128_read(etc_machine_id, ID128_PLAIN, &id); + r = id128_read(etc_machine_id, ID128_FORMAT_PLAIN, &id); if (r < 0) return log_error_errno(r, "Failed to read machine ID back: %m"); } else { |