[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] install-sh: Use the -c option to preserve permissions during cop
From: |
Julien ÉLIE |
Subject: |
[PATCH] install-sh: Use the -c option to preserve permissions during copy |
Date: |
Sat, 17 Mar 2018 15:16:44 +0100 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 |
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 files.
* lib/install-sh: Use the -c option to preserve permissions during copy
--- install-sh.orig 2018-03-17 14:18:08.701045461 +0100
+++ install-sh.cp-preserve 2018-03-17 14:27:16.862307681 +0100
@@ -98,7 +98,7 @@
--help display this help and exit.
--version display version info and exit.
- -c (ignored)
+ -c use 'cp -p' instead of 'cp'
-C install only if different (preserve the last data modification
time)
-d create directories instead of installing files.
-g GROUP $chgrpprog installed files to GROUP.
@@ -115,7 +115,7 @@
while test $# -ne 0; do
case $1 in
- -c) ;;
+ -c) cpprog="$cpprog -p";;
-C) copy_on_change=true;;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [PATCH] install-sh: Use the -c option to preserve permissions during copy,
Julien ÉLIE <=