]> git.ipfire.org Git - thirdparty/systemd.git/commit
fileio: make read_line() handle various line endings correctly
authorLennart Poettering <lennart@poettering.net>
Wed, 12 Dec 2018 12:41:25 +0000 (13:41 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 14 Dec 2018 08:12:17 +0000 (09:12 +0100)
commit838894b0c67d89f100aafd500f4d754ebd7cdb29
tree3f7c1629d6c3316bdcd0a10b13d615e78c92c979
parent57db447ebf71cd5eaefe31f7eab6452b42bd3417
fileio: make read_line() handle various line endings correctly

This adds support for windows line endings.

More importantly though with this change a newline followed by EOF is
considered a single line end.
src/basic/fileio.c
src/test/test-fileio.c