summaryrefslogtreecommitdiffabout
authorKarl Berry <karl@freefriends.org>2019-08-27 13:28:41 (GMT)
committer Karl Berry <karl@freefriends.org>2019-08-27 13:28:41 (GMT)
commitd77a23b15925e5554325ea3553c940133734eee3 (patch) (side-by-side diff)
tree5e3170c1717df8ef9e971f4e82c041138de54c9e
parent56663b473535ad7e6259606297a7e1f182deca9a (diff)
downloadgnulib-d77a23b15925e5554325ea3553c940133734eee3.tar.gz
gnulib-d77a23b15925e5554325ea3553c940133734eee3.tar.bz2
autoupdate
Diffstat (more/less context) (ignore whitespace changes)
-rwxr-xr-xbuild-aux/install-sh13
1 files changed, 12 insertions, 1 deletions
diff --git a/build-aux/install-sh b/build-aux/install-sh
index 8175c64..20d8b2e 100755
--- a/build-aux/install-sh
+++ b/build-aux/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.
#

Return to:

Send suggestions and report system problems to the System administrator.