From 3993af706cb3d872bef8d96102b3559b9ded177c Mon Sep 17 00:00:00 2001 From: Rupert Shuttleworth Date: Tue, 6 Apr 2021 20:35:16 +0000 Subject: [PATCH] Mark prop file as writable before writing to it. Test: Fixes USE_BAZEL=1 m builds. Change-Id: I1e0fb448049ff21cd32541af56e856442bc25fa7 --- core/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/Makefile b/core/Makefile index 74668890a..ea25cb215 100644 --- a/core/Makefile +++ b/core/Makefile @@ -2524,7 +2524,7 @@ endef $(INSTALLED_TEST_HARNESS_RAMDISK_TARGET): $(INSTALLED_DEBUG_RAMDISK_TARGET) $(INSTALLED_TEST_HARNESS_RAMDISK_TARGET): $(MKBOOTFS) $(INTERNAL_TEST_HARNESS_RAMDISK_FILES) | $(COMPRESSION_COMMAND_DEPS) $(call pretty,"Target test harness ramdisk: $@") - rsync -a $(TEST_HARNESS_RAMDISK_SYNC_DIR)/ $(TEST_HARNESS_RAMDISK_ROOT_DIR) + rsync --chmod=u+w -a $(TEST_HARNESS_RAMDISK_SYNC_DIR)/ $(TEST_HARNESS_RAMDISK_ROOT_DIR) $(call append-test-harness-props,$(ADDITIONAL_TEST_HARNESS_PROPERTIES),$(TEST_HARNESS_PROP_TARGET)) $(MKBOOTFS) -d $(TARGET_OUT) $(TEST_HARNESS_RAMDISK_ROOT_DIR) | $(COMPRESSION_COMMAND) > $@