[Bug 15853] New: 'cp -rf' doesn't keep destination permissions
bugzilla at busybox.net
bugzilla at busybox.net
Wed Nov 15 12:10:18 UTC 2023
https://bugs.busybox.net/show_bug.cgi?id=15853
Bug ID: 15853
Summary: 'cp -rf' doesn't keep destination permissions
Product: Busybox
Version: unspecified
Hardware: All
OS: Linux
Status: NEW
Severity: normal
Priority: P5
Component: Standard Compliance
Assignee: unassigned at busybox.net
Reporter: fulalas123 at gmail.com
CC: busybox-cvs at busybox.net
Target Milestone: ---
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
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the busybox-cvs
mailing list