diff options
author | Karl Berry <karl@freefriends.org> | 2019-08-28 23:53:44 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2019-08-28 23:53:44 +0000 |
commit | 4b4b6fe61666a7f2def3e72ed0fb2a6a8d2f7c4c (patch) | |
tree | 00925f7458ac8d9d50c8a8bd2e8f59a74eb87c7c /Build/source/libs/icu/icu-src/source | |
parent | 8fbf71b889654a57365e3ee26ae2e7cbe4f4c5d0 (diff) |
tl-update-auto
git-svn-id: svn://tug.org/texlive/trunk@51979 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/libs/icu/icu-src/source')
-rwxr-xr-x | Build/source/libs/icu/icu-src/source/install-sh | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/Build/source/libs/icu/icu-src/source/install-sh b/Build/source/libs/icu/icu-src/source/install-sh index 8175c640fe6..20d8b2eaea9 100755 --- a/Build/source/libs/icu/icu-src/source/install-sh +++ b/Build/source/libs/icu/icu-src/source/install-sh @@ -451,7 +451,18 @@ do trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0 # Copy the file name to the temp name. - (umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") && + (umask $cp_umask && + { test -z "$stripcmd" || { + # Create $dsttmp read-write so that cp doesn't create it read-only, + # which would cause strip to fail. + if test -z "$doit"; then + : >"$dsttmp" # No need to fork-exec 'touch'. + else + $doit touch "$dsttmp" + fi + } + } && + $doit_exec $cpprog "$src" "$dsttmp") && # and set any options; do chmod last to preserve setuid bits. # |