[Bug 3175] 'cp' does not play well with device files with ENABLE_FEATURE_NON_POSIX_CP is selected.
bugzilla at busybox.net
bugzilla at busybox.net
Wed Feb 2 00:04:51 UTC 2011
https://bugs.busybox.net/show_bug.cgi?id=3175
Denys Vlasenko <vda.linux at googlemail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |WONTFIX
--- Comment #1 from Denys Vlasenko <vda.linux at googlemail.com> ---
That's not surprising, since you use "copy file(s)" command to perform
something quite different from copying of files.
Help text for this option says:
config FEATURE_NON_POSIX_CP
bool "Non-POSIX, but safer, copying to special nodes"
default y
help
With this option, "cp file symlink" will delete symlink
and create a regular file. This does not conform to POSIX,
but prevents a symlink attack.
Similarly, "cp file device" will not send file's data
to the device. (To do that, use "cat file >device")
Thus, either disable FEATURE_NON_POSIX_CP and recompile your busybox, or use
cat /dev/zero >/dev/fb0
instead of cp.
--
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the busybox-cvs
mailing list