Expected behavior: the new file should replace the original one and keep the original (destiny) permission.
Current behavior: the new file 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/), which requires additional parameters (--preserve=all) to achieve that.
I'm using busybox 1.36.1
P.S.: is busybox bug track working? I reported this issue there one week ago and didn't see any reply.
How to replicate:
busybox cp /tmp/test.txt /etc/xdg/autostart
Expected behavior: the new file should replace the original one and keep the original (destiny) permission.
Current behavior: the new file 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/), which requires additional parameters (--preserve=all
) to achieve that.I'm using busybox 1.36.1
P.S.: is busybox bug track working? I reported this issue there one week ago and didn't see any reply.