The logic to make cp -d or -P treat things like regular files should only
authorRob Landley <rob@landley.net>
Sat, 24 Jun 2006 21:27:36 +0000 (21:27 -0000)
committerRob Landley <rob@landley.net>
Sat, 24 Jun 2006 21:27:36 +0000 (21:27 -0000)
commitc983274565a3443177ba1a68aab23a61ae70d5ea
tree2b8f914ab92544031b385a2ced99df20577263b7
parent5d9c42aadc7a526faa58bc94b9bdb650595f9d24
The logic to make cp -d or -P treat things like regular files should only
trigger for symlinks, not for device nodes.  This should fix "cp -a /dev ."
to work as expected (when run by root, anyway).

While I was there, cleanup headers and make an #ifdef go away...
libbb/copy_file.c