[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] install-sh: prevent existing directories from being chown'ed
From: |
Julien ÉLIE |
Subject: |
[PATCH] install-sh: prevent existing directories from being chown'ed |
Date: |
Sat, 17 Mar 2018 15:16:36 +0100 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 |
Hi,
I don't know whether it is still worth having, but I submit it in case
you would be interested. We occasionally encountered errors on a few systems
when trying to change ownership of existing directories.
https://inn.eyrie.org/trac/changeset/6882
--
Julien ÉLIE
* lib/install-sh: Prevent existing directories from being chown'ed
--- install-sh.orig 2018-03-17 14:18:08.701045461 +0100
+++ install-sh.useless-chown 2018-03-17 14:29:16.924781085 +0100
@@ -255,6 +255,10 @@
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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [PATCH] install-sh: prevent existing directories from being chown'ed,
Julien ÉLIE <=