load-fragment: validate paths properly
authorLennart Poettering <lennart@poettering.net>
Tue, 25 May 2021 15:25:40 +0000 (17:25 +0200)
committerLuca Boccassi <luca.boccassi@gmail.com>
Tue, 25 May 2021 22:19:50 +0000 (23:19 +0100)
commit108144adea838b281fe1f60dfa75542fe4c82d4b
treeb4cd4b0052fc7ca977f44786236f4b829b94b55f
parentc4734378622faeed2cab43ef3fdd39710a90a5f5
load-fragment: validate paths properly

The comment suggests we validate paths here, but we actually didn't, we
only validated filenames. Let' fix that.

(Note this still lets any kind of paths through, including those with
".." and stuff, this is not a normalization check after all)
src/core/load-fragment.c