summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2020-11-04 16:17:26 +0100
committerLennart Poettering <lennart@poettering.net>2020-12-01 14:17:46 +0100
commitae9cf30b2f22500a250d3132e1a9a49380c4c5eb (patch)
tree50f47382f6c408256ec61f8b0dfd28a722b612d7
parentf362fe731bc7d78ce915b4cdb69ad3ad46536bf5 (diff)
downloadsystemd-ae9cf30b2f22500a250d3132e1a9a49380c4c5eb.tar.gz
dissect-image: use simple version of read_full_file() where we can
-rw-r--r--src/shared/dissect-image.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/shared/dissect-image.c b/src/shared/dissect-image.c
index b32a8bc4e4..c2c46e1816 100644
--- a/src/shared/dissect-image.c
+++ b/src/shared/dissect-image.c
@@ -2115,7 +2115,7 @@ int verity_settings_load(
if (verity->root_hash && !verity->root_hash_sig) {
if (root_hash_sig_path) {
- r = read_full_file_full(AT_FDCWD, root_hash_sig_path, 0, NULL, (char**) &root_hash_sig, &root_hash_sig_size);
+ r = read_full_file(root_hash_sig_path, (char**) &root_hash_sig, &root_hash_sig_size);
if (r < 0 && r != -ENOENT)
return r;
@@ -2131,7 +2131,7 @@ int verity_settings_load(
if (!p)
return -ENOMEM;
- r = read_full_file_full(AT_FDCWD, p, 0, NULL, (char**) &root_hash_sig, &root_hash_sig_size);
+ r = read_full_file(p, (char**) &root_hash_sig, &root_hash_sig_size);
if (r < 0 && r != -ENOENT)
return r;
if (r >= 0)
@@ -2145,7 +2145,7 @@ int verity_settings_load(
if (!p)
return -ENOMEM;
- r = read_full_file_full(AT_FDCWD, p, 0, NULL, (char**) &root_hash_sig, &root_hash_sig_size);
+ r = read_full_file(p, (char**) &root_hash_sig, &root_hash_sig_size);
if (r < 0 && r != -ENOENT)
return r;
if (r >= 0)