Issue: 'cp -rf' doesn't keep destination permissions. How to replicate: 1- have a 644 permission test.txt file in /etc/xdg/autostart 2- have a 755 permission test.txt file in /tmp 3- call busybox using: busybox cp -rf /tmp /etc/xdg/autostart/test.txt Expected behavior: the new file copied should replace the original one and keep the original file permissions. Current behavior: the new file copied replaces the original one but it also replaces its permission, and that's not the behavior of cp from coreutils (https://www.gnu.org/software/coreutils/). I'm using busybox 1.36.1
I tried but failed to edit the issue because there's a tiny error in the steps to replicate. Here it goes: 1- have a 644 permission test.txt file in /etc/xdg/autostart 2- have a 755 permission test.txt file in /tmp 3- call busybox using: busybox cp /tmp/test.txt /etc/xdg/autostart