diff options
author | Jean Delvare <jdelvare@suse.de> | 2012-02-01 18:08:48 +0100 |
---|---|---|
committer | Jean Delvare <jdelvare@suse.de> | 2012-02-01 18:08:48 +0100 |
commit | 627e2217ba89d71bf261f664b8e0a9578c8b1572 (patch) | |
tree | df6d6aaffbcc9a8cf2dbad5981783afeee1ceac6 | |
parent | 2b47cd327f7d1f7692128ff1fa24a85b92733058 (diff) | |
download | quilt-627e2217ba89d71bf261f664b8e0a9578c8b1572.tar.gz |
BSD compatibility: cp
Avoid using uncommon cp options which hurt portability. I fail to see
why we would need them anyway, as we are never working with symbolic
links by construction (quilt doesn't support them.)
Signed-off-by: Jean Delvare <jdelvare@suse.de>
Reviewed-by: Raphael Hertzog <hertzog@debian.org>
-rw-r--r-- | quilt/scripts/backup-files.in | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/quilt/scripts/backup-files.in b/quilt/scripts/backup-files.in index 728fced..086d178 100644 --- a/quilt/scripts/backup-files.in +++ b/quilt/scripts/backup-files.in @@ -51,7 +51,7 @@ usage () { copy_file() { local from="$1" local to="$2" - cp -dp --remove-destination "$from" "$to" + cp -p "$from" "$to" } link_or_copy_file() { @@ -72,7 +72,7 @@ ensure_nolinks() { basename=$(basename "$filename") # Temp file name is "path/to/.file.XXXXXX" tmpname=$(mktemp "${dirname}/.${basename}.XXXXXX") - cp -dp "$filename" "$tmpname" + cp -p "$filename" "$tmpname" mv "$tmpname" "$filename" fi } |