diff --git a/doc/RELEASE.md b/doc/RELEASE.md index cdb45b1ba..29e36edd7 100644 --- a/doc/RELEASE.md +++ b/doc/RELEASE.md @@ -152,7 +152,7 @@ git push origin integration These scripts are required by `src/config` and should be updated after each release, when needed. Note that these files are updated very infrequently. -Check the latest version of `automake` and see if it is > `1.16.1`: +Check the latest version of `automake` and see if it is > `1.16.2`: ``` https://git.savannah.gnu.org/gitweb/?p=automake.git ``` diff --git a/src/build/install-sh b/src/build/install-sh index 8175c640f..20d8b2eae 100755 --- a/src/build/install-sh +++ b/src/build/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. #