automake-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[automake-commit] branch master updated: install-sh: do not chown existi


From: Karl Berry
Subject: [automake-commit] branch master updated: install-sh: do not chown existing directories.
Date: Tue, 10 Nov 2020 20:54:16 -0500

This is an automated email from the git hooks/post-receive script.

karl pushed a commit to branch master
in repository automake.

View the commit online:
https://git.savannah.gnu.org/gitweb/?p=automake.git;a=commitdiff;h=6b182dc52eff16ad583f9251fd1a6888f8d9fc2f

The following commit(s) were added to refs/heads/master by this push:
     new 6b182dc  install-sh: do not chown existing directories.
6b182dc is described below

commit 6b182dc52eff16ad583f9251fd1a6888f8d9fc2f
Author: Karl Berry <karl@freefriends.org>
AuthorDate: Tue Nov 10 17:54:06 2020 -0800

    install-sh: do not chown existing directories.
    
    * lib/install-sh: do not chown existing directories.
    Original patch sent by Julien Elie:
    https://lists.gnu.org/archive/html/automake-patches/2018-03/msg00003.html
    (scriptversion): 2020-11-11.01
    * NEWS: mention this.
---
 NEWS           | 4 ++--
 lib/install-sh | 6 +++++-
 2 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/NEWS b/NEWS
index c7d02d6..f4445f9 100644
--- a/NEWS
+++ b/NEWS
@@ -92,8 +92,8 @@ New in ?.?.?:
 
 * Miscellaneous changes
 
-  - install-sh no longer unconditionally uses -f when rm is overridden
-  by RMPROG.
+  - install-sh tweaks: no longer unconditionally uses -f when rm is
+  overridden by RMPROG; does not chown existing directories.
 
   - Removed function up_to_date_p in lib/Automake/FileUtils.pm.
     We believe this function is completely unused.
diff --git a/lib/install-sh b/lib/install-sh
index 2915ff0..4fe1350 100755
--- a/lib/install-sh
+++ b/lib/install-sh
@@ -1,7 +1,7 @@
 #!/bin/sh
 # install - install a program, script, or datafile
 
-scriptversion=2020-07-26.22; # UTC
+scriptversion=2020-11-11.01; # UTC
 
 # This originates from X11R5 (mit/util/scripts/install.sh), which was
 # later released in X11R6 (xc/config/util/install.sh) with the
@@ -262,6 +262,10 @@ do
     dstdir=$dst
     test -d "$dstdir"
     dstdir_status=$?
+    # Don't chown directories that already exist.
+    if test $dstdir_status = 0; then
+      chowncmd=""
+    fi
   else
 
     # Waiting for this to be detected by the "$cpprog $src $dsttmp" command



reply via email to

[Prev in Thread] Current Thread [Next in Thread]