busybox 1.19.3 cp bug w.r.t device files?
Denys Vlasenko
vda.linux at googlemail.com
Wed Dec 21 12:08:30 UTC 2011
On Wed, Dec 21, 2011 at 12:31 PM, Joakim Tjernlund
<joakim.tjernlund at transmode.se> wrote:
>
> Recently installed bb 1.19.3 (gentoo) on our ppc target. Today I discovered
> that cp vmlinux /dev/mtdblock5 dosn't work. The device file is removed and
> a new plain file is created instead.
> Feels like a bb bug, comments?
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")
More information about the busybox
mailing list