]> git.ipfire.org Git - thirdparty/systemd.git/commit
homed: return the correct error if an image file is not present when we try to activa...
authorLennart Poettering <lennart@poettering.net>
Thu, 20 Feb 2025 14:09:25 +0000 (15:09 +0100)
committerLennart Poettering <lennart@poettering.net>
Thu, 20 Feb 2025 16:34:02 +0000 (17:34 +0100)
commit2cf95e51784d897ce6e5be6a8e9cbeaba7b05c77
tree41c7dfdc896d618c7ec31727eef610a0989241b7
parent6828cc112a7c299932da49fef2b33e2d67d02aaf
homed: return the correct error if an image file is not present when we try to activate it

We already return BUS_ERROR_HOME_ABSENT when we detect the image being
absent before we fork off the homework worker. Let's also return the
same error if the homework process notices the same condition while
actually doing something.

This mostly fixes a race, that the same condition seen at different
points in time results in the same errors.
src/home/homed-home.c
src/home/homework.c