From b2049b6ce7c25344591a409432ca1f0271cf98aa Mon Sep 17 00:00:00 2001 From: Vyacheslav Salnikov Date: Thu, 7 Mar 2024 12:40:20 +0200 Subject: [PATCH] fix: change rootfs.mk to not preserve ownership Fix leakage of build host's UID/GID to OpenSync package files when installed to rootfs Removing '--preserve=all' from '--archive' option which is equal to '-dR --preserve=all' Signed-off-by: Vyacheslav Salnikov --- build/rootfs.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/rootfs.mk b/build/rootfs.mk index b8189df0..f686262b 100644 --- a/build/rootfs.mk +++ b/build/rootfs.mk @@ -125,7 +125,7 @@ define rootfs_install_to_target $(Q)echo "$(call color_install,install) rootfs $(call color_profile,$(BUILD_ROOTFS_DIR) => $(INSTALL_ROOTFS_DIR))" $(Q)if [ -L $(INSTALL_ROOTFS_DIR)$(INSTALL_PREFIX) ]; then rm $(INSTALL_ROOTFS_DIR)$(INSTALL_PREFIX); fi $(Q)if [ -L $(INSTALL_ROOTFS_DIR)$(ROOTFS_LEGACY_PREFIX) ]; then rm $(INSTALL_ROOTFS_DIR)$(ROOTFS_LEGACY_PREFIX); fi - $(Q)cp --remove-destination --archive $(BUILD_ROOTFS_DIR)/. $(INSTALL_ROOTFS_DIR)/. + $(Q)cp --remove-destination -dR $(BUILD_ROOTFS_DIR)/. $(INSTALL_ROOTFS_DIR)/. endef