diff options
author | Lennart Poettering <lennart@poettering.net> | 2020-11-04 20:25:06 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2020-12-01 14:17:47 +0100 |
commit | 986311c2da873ea24ee05e59e97c60f5584e4226 (patch) | |
tree | ee3b18bb41646542c450d0ae55792cc38a1fc7a0 /src/veritysetup | |
parent | c61f46fe3142e8b2fee48c845339bd82e29df085 (diff) | |
download | systemd-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.c | 6 |
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"); } |