]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/home/homed-home.c
homed: fix return value mix-up
authorLennart Poettering <lennart@poettering.net>
Wed, 20 May 2020 17:55:39 +0000 (19:55 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 21 May 2020 06:10:13 +0000 (08:10 +0200)
commita60416f319439fc34b90225855ee88247c920854
treed1ecb04db17d686c4069c4f19cd261918a51413b
parentb10ceb47836201faa0d374cd9f536d2f503457a7
homed: fix return value mix-up

We generally return > 1 if any of the actions we are doing is instantly
complete and == 0 when we started doing it asynchronously (by forking
off homework), in our functions that execute operations on homes.

Fix a mix-up where the test for this was reversed in
home_dispatch_release() and home_dispatch_lock_all().

Fixes: #15684
src/home/homed-home.c