]> git.ipfire.org Git - thirdparty/systemd.git/commit
fileio: replace read_nul_string() by read_line() with a special flag
authorLennart Poettering <lennart@poettering.net>
Mon, 17 Dec 2018 10:50:33 +0000 (11:50 +0100)
committerLennart Poettering <lennart@poettering.net>
Tue, 18 Dec 2018 14:03:05 +0000 (15:03 +0100)
commit41f11239c0c83c378643fc4942c726a49025b3b8
tree81d9dcdf214898e4f1108a534808fec3f0f5e230
parent2a7797e964e5b6a0f305b00073e2b06a195d0b15
fileio: replace read_nul_string() by read_line() with a special flag

read_line() is a lot more careful and optimized than read_nul_string()
but does mostly the same thing. let's replace the latter by the former,
just with a special flag that toggles between the slightly different EOL
rules if both.
src/basic/fileio.c
src/basic/fileio.h
src/machine/machined-dbus.c