Created attachment 798645 [details] Patch for rfe. Description of problem: I need atomically check if deleted home is owned by user. This patch should be helpful. I hope, that gods will be satisfied by this patch. This patch also contains generated documentation.
Maybe: api can be named like: lu_homedir_remove_if_owned_by_user
Fixed in rawhide libuser-0.60-1.fc21, adding lu_homedir_remove_for_user_if_owned(). Thanks for the patch!
libuser-0.60-3.fc20 has been submitted as an update for Fedora 20. https://admin.fedoraproject.org/updates/libuser-0.60-3.fc20
Package libuser-0.60-3.fc20: * should fix your issue, * was pushed to the Fedora 20 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing libuser-0.60-3.fc20' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2013-19208/libuser-0.60-3.fc20 then log in and leave karma (feedback).
libuser-0.60-3.fc20 has been pushed to the Fedora 20 stable repository. If problems still persist, please make note of it in this bug report.