summaryrefslogtreecommitdiff
path: root/src/veritysetup
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2020-11-04 20:25:06 +0100
committerLennart Poettering <lennart@poettering.net>2020-12-01 14:17:47 +0100
commit986311c2da873ea24ee05e59e97c60f5584e4226 (patch)
treeee3b18bb41646542c450d0ae55792cc38a1fc7a0 /src/veritysetup
parentc61f46fe3142e8b2fee48c845339bd82e29df085 (diff)
downloadsystemd-986311c2da873ea24ee05e59e97c60f5584e4226.tar.gz
fileio: teach read_full_file_full() to read from offset/with maximum size
Diffstat (limited to 'src/veritysetup')
-rw-r--r--src/veritysetup/veritysetup.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/veritysetup/veritysetup.c b/src/veritysetup/veritysetup.c
index 558e9510ff..9b8bca11f2 100644
--- a/src/veritysetup/veritysetup.c
+++ b/src/veritysetup/veritysetup.c
@@ -100,7 +100,11 @@ static int run(int argc, char *argv[]) {
if (r < 0)
return log_error_errno(r, "Failed to parse root hash signature '%s': %m", argv[6]);
} else {
- r = read_full_file_full(AT_FDCWD, argv[6], READ_FULL_FILE_CONNECT_SOCKET, NULL, &hash_sig, &hash_sig_size);
+ r = read_full_file_full(
+ AT_FDCWD, argv[6], UINT64_MAX, SIZE_MAX,
+ READ_FULL_FILE_CONNECT_SOCKET,
+ NULL,
+ &hash_sig, &hash_sig_size);
if (r < 0)
return log_error_errno(r, "Failed to read root hash signature: %m");
}