]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/home/homework-directory.c
homework: port home_create_directory_or_subvolume() to use HomeSetup
authorLennart Poettering <lennart@poettering.net>
Wed, 20 Oct 2021 19:45:51 +0000 (21:45 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 27 Oct 2021 15:37:14 +0000 (17:37 +0200)
commite1aeaf27f5d537283e6cacd1bb5d2d9fa0860dab
treeb58dc0feeefd554943496b706c55362505672b93
parentf509ed4b61d414e031459f190e33d32a1e40d80d
homework: port home_create_directory_or_subvolume() to use HomeSetup

Let's migrate home_create_directory_or_subvolume() to also use HomeSetup
for storing its runtime objects we'd like to destroy in case of failure.

In the beginning this is just the root_fd, but later on we can add more.

No change in behaviour, just shifting things around.
src/home/homework-directory.c
src/home/homework-directory.h
src/home/homework.c