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 <[email protected]>
Reviewed-by: Raphael Hertzog <[email protected]>
---
 quilt/scripts/backup-files.in |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

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


_______________________________________________
Quilt-dev mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/quilt-dev

Reply via email to