]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/test/test-id128.c
sd-id128: be more liberal when reading files with 128bit IDs
authorLennart Poettering <lennart@poettering.net>
Mon, 25 Jul 2016 18:50:24 +0000 (20:50 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 25 Jul 2016 18:53:26 +0000 (20:53 +0200)
commit65548c58dddf721d03d8a5f5c96b196510f158fb
tree0d9fe575054eb1c5ae12fb72def2fd75317ee392
parent87410f166eb5e0f06703bd82fdec2fb47afb58ef
sd-id128: be more liberal when reading files with 128bit IDs

Accept both files with and without trailing newlines. Apparently some rkt
releases generated them incorrectly, missing the trailing newlines, and we
shouldn't break that.
src/libsystemd/sd-id128/id128-util.c
src/test/test-id128.c