]> git.ipfire.org Git - thirdparty/systemd.git/commit
tmpfiles: fix symlink creation when replacing
authorLennart Poettering <lennart@poettering.net>
Wed, 18 Jun 2025 08:23:42 +0000 (10:23 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 18 Jun 2025 08:23:44 +0000 (10:23 +0200)
commitee8e7000f2ac7a3168e3232fdea0ee004f9d4ca3
tree3dc51dd00cc545e52e5ec707d8338501d658f6a7
parentf6e213e86aac87f7922a405e2bebfb479d6e5d57
tmpfiles: fix symlink creation when replacing

When we remove an existing inode in order to create a symlink we need to
create the symlink via a pinned directory again, instead of using an
absolute path, otherwise this will not work in the --root= case.

Let's fix this, and switch this over to symlinkat_atomic_full().
src/tmpfiles/tmpfiles.c