]> git.ipfire.org Git - thirdparty/systemd.git/commit
bless-boot: never try to rename an entry file onto itself 37375/head
authorLennart Poettering <lennart@poettering.net>
Wed, 7 May 2025 13:34:51 +0000 (15:34 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 12 May 2025 11:04:16 +0000 (13:04 +0200)
commit30284e3a59f221f5711f1ce63a881dcbfc4c4ead
treed61dc08576a49a3f1a5963f14d79c50b441d1786
parent9420a0e6cb832d6035c8cf634f11c4b2da0097bd
bless-boot: never try to rename an entry file onto itself

If we are booting a known bad entry, and we are asked to mark it as bad,
we so far would end up renaming the entry onto itself, which resulted in
EEXIST and is really borked operation. Let's catch that case and handle
it explicitly.
src/bless-boot/bless-boot.c