copy_file: handle "cp /dev/foo file" (almost) compatibly to coreutils.
authorDenis Vlasenko <vda.linux@googlemail.com>
Fri, 28 Mar 2008 17:49:31 +0000 (17:49 -0000)
committerDenis Vlasenko <vda.linux@googlemail.com>
Fri, 28 Mar 2008 17:49:31 +0000 (17:49 -0000)
commitb9ad75fa602dd72b042b2ea08ce86da50746ab30
tree19445163e0f30e8015eeafbcad091309407ab050
parenta38ba59cc3e78db0234cf4c224de6749d8ce759d
copy_file: handle "cp /dev/foo file" (almost) compatibly to coreutils.
(almost because we do not copy mode, which is probably wasn't intended).
+61 bytes.
coreutils/mv.c
include/libbb.h
libbb/copy_file.c
testsuite/cp/cp-a-files-to-dir
testsuite/cp/cp-dev-file [new file with mode: 0644]
testsuite/cp/cp-does-not-copy-unreadable-file