ncp
ncp copied to clipboard
Prevent copying a directory into itself
cp -r stops users from doing this. ncp currently continues to recurse, resulting eventually in ENAMETOOLONG after many levels of directory nesting. While an obscure situation, this should be fixed.
repro here: http://runnable.com/U2vWs4L1zLJeDQ-Q/ncp-recursive-copy-issue