[PATCH] install-sh: prevent existing directories from being chown'ed

2018-03-17 Thread Julien ÉLIE
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: Preven

[PATCH] install-sh: Use the -c option to preserve permissions during copy

2018-03-17 Thread Julien ÉLIE
Hi, Here is a suggestion of patch we've been using for almost two decades with INN (a news server). https://inn.eyrie.org/trac/changeset/2777 Maybe it was the sense the "-c" option once had (?) -- Julien ÉLIE Re-use the "-c" option to have install-sh preserve permissions when copying file

[PATCH] install-sh: Handle .exe extensions, for Cygwin portability

2018-03-17 Thread Julien ÉLIE
Hi, You'll find below a suggestion of patch we've been using since 2002 with INN (a news server). https://inn.eyrie.org/trac/changeset/5703 -- Julien ÉLIE Make install-sh properly handle .exe extensions. Path from Greg Andruk. * lib/install-sh: Handle .exe extensions, for Cygwin portabil

[PATCH] install-sh: Add a new -B option to backup files being overwritten

2018-03-17 Thread Julien ÉLIE
Hi, Here is a suggestion of patch we've been using for almost two decades with INN (a news server). https://inn.eyrie.org/trac/changeset/2777 -- Julien ÉLIE Add a new "-B" option to request saving of the original file when install-sh is overwriting an existing file. "-B" takes an argument:

[PATCH] install-sh: Fix redundant use of the force option with the rm command

2018-03-17 Thread Julien ÉLIE
Hi, You'll find below a suggestion of patch. Or you could also remove "-f" from the initial $rmcmd definition, if you prefer. -- Julien ÉLIE As install-sh defines $rmcmd as "$rmprog -f", it is not necessary to add a second "-f" when calling the rm command. * lib/install-sh: Fix redundant use