[Bug 3175] New: 'cp' does not play well with device files with ENABLE_FEATURE_NON_POSIX_CP is selected.

bugzilla at busybox.net bugzilla at busybox.net
Mon Jan 31 19:44:05 UTC 2011


https://bugs.busybox.net/show_bug.cgi?id=3175

           Summary: 'cp' does not play well with device files with
                    ENABLE_FEATURE_NON_POSIX_CP is selected.
           Product: Busybox
           Version: 1.18.x
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P5
         Component: Other
        AssignedTo: unassigned at busybox.net
        ReportedBy: caglarakyuz at gmail.com
                CC: busybox-cvs at busybox.net
   Estimated Hours: 0.0


Issuing following command replaces my device file:

$cp /dev/zero /dev/fb0

Here /dev/fb0 is a device file and I want to clear framebuffer memory, however
cp tries to open device file with O_WRONLY|O_CREAT|O_EXCL and fails to open
device file. Then it unlinks device file and creates a new file on my
file-system. I don't know if this is intentional or not but, IMHO, this
behavior is not expected.

-- 
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