aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormerakor <cem@ckyln.com>2023-02-05 17:17:47 +0000
committermerakor <cem@ckyln.com>2023-02-05 17:17:47 +0000
commit74b5020d4588bb5a6feb8b0c0774052d54ad6cbf (patch)
tree6e3ef5ecdfd45e6665db6b1fd3d96e52be1ced5e /src
parent294fea20b110e2485aeb5e12b41b1e9e0f4af648 (diff)
downloadcpt-74b5020d4588bb5a6feb8b0c0774052d54ad6cbf.tar.gz
_tmp_cp(): preserve file attributes
FossilOrigin-Name: a9e12474744707b290d0a74dba5494c175bc3ce453fad796f72722e791f44f22
Diffstat (limited to 'src')
-rw-r--r--src/cpt-lib.in2
1 files changed, 1 insertions, 1 deletions
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"
}