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;;
 


Reply via email to