loop-util: let's cut trailing whitespace, not trailing lines
authorLennart Poettering <lennart@poettering.net>
Tue, 5 Apr 2022 14:58:32 +0000 (16:58 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 7 Apr 2022 16:55:58 +0000 (18:55 +0200)
commita145f8c06c354328b4a6ed8a7621c4b21cbca05b
tree51ca29ae4063060d793179468376083e8ccb216a
parentcedf5b1aef4da2443f00eef2c242c8b005071aca
loop-util: let's cut trailing whitespace, not trailing lines

This doesn't really make any real difference, given the file should only
contain a single line. But it's conceptually more correct to just remove
the trailing newline/whitespace then the whole lines coming after that.
i.e. if the file actually contains more lines than one, this should
probably be considered an error.
src/shared/loop-util.c