]> git.ipfire.org Git - thirdparty/systemd.git/commit
homework: don't try to shift uidmap for already activated home areas
authorLennart Poettering <lennart@poettering.net>
Wed, 24 Nov 2021 17:31:51 +0000 (18:31 +0100)
committerLennart Poettering <lennart@poettering.net>
Wed, 24 Nov 2021 17:31:51 +0000 (18:31 +0100)
commit6f2c813667018cc54f127a15a578a74071b0fa24
tree8a680e0082ce966e94b070f36f64533d1839822d
parenteae3a68144d9825535b22db0bbb06a024a0b4400
homework: don't try to shift uidmap for already activated home areas

When we want to operate on an already activated home area we so far
tried to reapply the uidmapping logic. We shouldn't do that, it's
already applied after all.

We only want to apply this for newly activated home areas. Hence check
for the right HomeSetupFlags flag for it HOME_SETUP_ALREADY_ACTIVATED.

The patch is actually in theory a two-liner. Except that so far we don#t
pass the HomeSetupFlags flags down all necessary functions where the
uidmap stuff will eventually run. Hence this larger than intended
commit.
src/home/homework-cifs.c
src/home/homework-cifs.h
src/home/homework-directory.c
src/home/homework-directory.h
src/home/homework-luks.c
src/home/homework-luks.h
src/home/homework.c
src/home/homework.h