summaryrefslogtreecommitdiffstats
path: root/src/basic/sysctl-util.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2021-03-05 20:34:16 +0100
committerLennart Poettering <lennart@poettering.net>2021-03-05 20:38:51 +0100
commit4b30f2e135ee84041bb597edca7225858f4ef4fb (patch)
tree1c238f9d9b25002c81fb46e9bf87d3bf27965569 /src/basic/sysctl-util.c
parentMerge pull request #18852 from yuwata/tree-wide-use-UINT64_MAX (diff)
downloadsystemd-4b30f2e135ee84041bb597edca7225858f4ef4fb.tar.xz
systemd-4b30f2e135ee84041bb597edca7225858f4ef4fb.zip
sysctl-util: use read_full_virtual_file() for reading sysctls
Given these files are part of procfs, let's use the correct API calls for reading them. This changes one occasion of read_one_line_file() to read_full_virtual_file(), which superficially is a different thing, but shouldn't actually be a difference, since sysctls can't be longer than 4K anyway, and the piecemeal logic behind read_one_line_file() cannot work with the special semantics of procfs anyway.
Diffstat (limited to 'src/basic/sysctl-util.c')
0 files changed, 0 insertions, 0 deletions