]> git.ipfire.org Git - thirdparty/systemd.git/commit
homed: rescan /home/ in more occasions automatically
authorLennart Poettering <lennart@poettering.net>
Fri, 28 Feb 2025 07:47:46 +0000 (08:47 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 7 Mar 2025 17:14:55 +0000 (18:14 +0100)
commitefe2ce7277c6da2a9d25906cf53f59278b2f35f6
treee7cca2a177060c6831e7afa310fcad9af203f754
parent17f48a8cc75215d2ff18a2b8242a341dd583f2c1
homed: rescan /home/ in more occasions automatically

When unregistering a home there's a chance this "reveals" another home
by the same name in /home/, hence immediately schedule a rescan, the
same way we already schedule it in on remove.

Also, drop the conditionalization when scheduling a rescan during
remove, for the same reasons: a remove might reveal another home, and we
cannot check for that ahead of time. Trying to check is kinda a
pointless optimization anyway, since this is not a frequent operation
and rescanning is not the end of the world.
src/home/homed-home.c