]> git.ipfire.org Git - thirdparty/systemd.git/commit
bootspec: simplify paths + insist they are normalized
authorLennart Poettering <lennart@poettering.net>
Fri, 2 Sep 2022 09:04:51 +0000 (11:04 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 2 Sep 2022 12:25:46 +0000 (14:25 +0200)
commitbb9133bb467f49bdfc236b19a51558634681d2c4
treee5f4530c8b08198e69dfde6a6b6fd7a54eade6d4
parent81e327c42c26b0a716fc75718e8d5fce8f6893e2
bootspec: simplify paths + insist they are normalized

Inspired by #23913, let's complain if people use paths with ".."
in Type #1 bootspec entries.

Let's prefix all paths with "/" if it is missing.

Let's simplify all paths.

let's refuse paths/warn with "..".

Fixes: #23913
src/shared/bootspec.c