]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/tmpfiles/tmpfiles.c
tmpfiles: move validation/normalization of path before we use it 24459/head
authorLennart Poettering <lennart@poettering.net>
Fri, 26 Aug 2022 08:12:29 +0000 (10:12 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 26 Aug 2022 09:11:48 +0000 (11:11 +0200)
commit35c18a51f5d512c69388a7f76744597015950677
treea76337723fe199cf96102bd15ddf071917386487
parentce610af143b2a11011f00c65ea96f7a88453373b
tmpfiles: move validation/normalization of path before we use it

We need to normalize/validate the path (i.e. first column) of
tmpfiles.d/ lines before we start using the path, otherwise we'll use it
before it's known to be good. This matters since for some line types the
path is mangled into the argument column (i.e. sevents column), and we
should only do that once we know it's in a good state.
src/tmpfiles/tmpfiles.c