]> git.ipfire.org Git - thirdparty/systemd.git/commit
dissect: Introduce --copy-ownership= to configure chown behavior
authorDaanDeMeyer <daan.j.demeyer@gmail.com>
Sat, 27 Dec 2025 19:37:02 +0000 (20:37 +0100)
committerDaan De Meyer <daan@amutable.com>
Thu, 12 Feb 2026 08:45:13 +0000 (09:45 +0100)
commitba37ed963453467dc21b82b8841ecdbb83551a97
tree5adbaa62219264a2ce0ba5f1c4bd7ba65f1e5a10
parentef155c909a53fc1c04c8ea5cd4b032e548b91a87
dissect: Introduce --copy-ownership= to configure chown behavior

Currently, if we're copying a file, we won't copy the owner UID/GID
from the source. If we're copying a directory, we will copy the owner
UID/GID from the source. Let's give users a bit more control over this
behavior by introducing --copy-ownership= which will default to the
current behavior but allows users to explicitly enable/disable copying
of ownership.
man/systemd-dissect.xml
src/dissect/dissect.c
src/import/import-fs.c
src/shared/btrfs-util.c
src/shared/copy.c
src/shared/copy.h
src/test/test-copy.c
src/test/test-execute.c
test/units/TEST-50-DISSECT.dissect.sh