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/basic/cgroup-util.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/basic/cgroup-util.c')
-rw-r--r-- | src/basic/cgroup-util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/basic/cgroup-util.c b/src/basic/cgroup-util.c index 0b252eb28f..8dd3f8cd95 100644 --- a/src/basic/cgroup-util.c +++ b/src/basic/cgroup-util.c @@ -100,7 +100,7 @@ int cg_read_event( if (r < 0) return r; - r = read_full_file(events, &content, NULL); + r = read_full_virtual_file(events, &content, NULL); if (r < 0) return r; |