]> git.ipfire.org Git - thirdparty/systemd.git/commit
firstboot: Do not dereference symlinks
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Sat, 1 Apr 2023 08:46:42 +0000 (10:46 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Sat, 1 Apr 2023 08:46:42 +0000 (10:46 +0200)
commitb39710cccf42fd31ff84fb27f84741cbb0ff82c3
tree2a4852e5c66085ac6736761501aa4dd8c420721b
parent86c20937c29da637878a1282444b057bc1a519fb
firstboot: Do not dereference symlinks

Let's always operate on paths without resolving the final component.
If the path is a symlink, it could point to a vendor default in /usr,
in which case we definitely do not want to modify the vendor defaults.
To avoid this from happening, we replace the symlink with our own file
instead of modifying the file the symlink points at.
src/firstboot/firstboot.c