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/shared/json.c | |
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/shared/json.c')
-rw-r--r-- | src/shared/json.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/json.c b/src/shared/json.c index ddf6dcb663..28fe482749 100644 --- a/src/shared/json.c +++ b/src/shared/json.c @@ -3195,7 +3195,7 @@ int json_parse_file_at(FILE *f, int dir_fd, const char *path, JsonParseFlags fla if (f) r = read_full_stream(f, &text, NULL); else if (path) - r = read_full_file_full(dir_fd, path, 0, NULL, &text, NULL); + r = read_full_file_full(dir_fd, path, UINT64_MAX, SIZE_MAX, 0, NULL, &text, NULL); else return -EINVAL; if (r < 0) |