diff options
author | Lennart Poettering <lennart@poettering.net> | 2021-03-17 18:43:42 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2021-03-17 18:43:42 +0100 |
commit | 627055ce9ae66a637aa2b3eec876620aec80c705 (patch) | |
tree | d511dca13de9b884a4f2ff693d7377f940b9931b /src/pstore/pstore.c | |
parent | 04820600e712affce95fcbab13de55edef216753 (diff) | |
download | systemd-627055ce9ae66a637aa2b3eec876620aec80c705.tar.gz |
tree-wide: use read_full_virtual_file() where appropriate
Wherever we read virtual files we better should use
read_full_virtual_file(), to make sure we get a consistent response
given how weird the kernel's handling with partial read on such file
systems is.
Diffstat (limited to 'src/pstore/pstore.c')
-rw-r--r-- | src/pstore/pstore.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pstore/pstore.c b/src/pstore/pstore.c index 9d59c608c1..6ce38f10a3 100644 --- a/src/pstore/pstore.c +++ b/src/pstore/pstore.c @@ -342,7 +342,7 @@ static int list_files(PStoreList *list, const char *sourcepath) { size_t buf_size; /* Now read contents of pstore file */ - r = read_full_file(ifd_path, &buf, &buf_size); + r = read_full_virtual_file(ifd_path, &buf, &buf_size); if (r < 0) { log_warning_errno(r, "Failed to read file %s, skipping: %m", ifd_path); continue; |