diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2019-10-04 14:47:14 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2019-10-04 14:47:14 +0300 |
commit | 6775b9c4de4050cd65a89835d8f337c00ede5e54 (patch) | |
tree | f075713fdf61f761c03e52d3ee6f3a2f1b177a24 /install-sh | |
parent | f4795f119a1c02ccf92469296a77a9e6d10d3757 (diff) | |
download | egawk-6775b9c4de4050cd65a89835d8f337c00ede5e54.tar.gz egawk-6775b9c4de4050cd65a89835d8f337c00ede5e54.tar.bz2 egawk-6775b9c4de4050cd65a89835d8f337c00ede5e54.zip |
Update aux files.
Diffstat (limited to 'install-sh')
-rwxr-xr-x | install-sh | 13 |
1 files changed, 12 insertions, 1 deletions
@@ -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. # |