From 74b5020d4588bb5a6feb8b0c0774052d54ad6cbf Mon Sep 17 00:00:00 2001 From: merakor Date: Sun, 5 Feb 2023 17:17:47 +0000 Subject: _tmp_cp(): preserve file attributes FossilOrigin-Name: a9e12474744707b290d0a74dba5494c175bc3ce453fad796f72722e791f44f22 --- src/cpt-lib.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cpt-lib.in b/src/cpt-lib.in index 9166374..1896920 100644 --- a/src/cpt-lib.in +++ b/src/cpt-lib.in @@ -2315,7 +2315,7 @@ _tmp_cp() { # second argument is not given, use the basename of the copied file. _ret=${2:-${1##*/}} _ret=$(_tmp_name "$_ret") - cp "$1" "$_ret" + cp -p "$1" "$_ret" out "$_ret" } -- cgit v1.2.3