From 180e591d60ae6166833eb6497b6452a93f392ce1 Mon Sep 17 00:00:00 2001 From: Andrew Pogrebennyk Date: Thu, 10 Jan 2019 17:04:23 +0100 Subject: [PATCH] TT#50100 scripts/patch: preserve file permissions when creating customtt Change-Id: Ibc54b3c563d53f9fa60644d882e4633695b01e29 --- scripts/patch | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/patch b/scripts/patch index 023b320d..31c17281 100755 --- a/scripts/patch +++ b/scripts/patch @@ -142,6 +142,10 @@ patch_apply() { bad_files+=("${patch}") fi + if [[ -f "${template}" && -f "${customtt}" ]] ; then + chmod --reference="${template}" "${customtt}" + chown --reference="${template}" "${customtt}" + fi rm -f "${patch_output}" }