ncp icon indicating copy to clipboard operation
ncp copied to clipboard

Prevent copying a directory into itself

Open AvianFlu opened this issue 14 years ago • 1 comments

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.

AvianFlu avatar Sep 28 '11 18:09 AvianFlu

repro here: http://runnable.com/U2vWs4L1zLJeDQ-Q/ncp-recursive-copy-issue

anandkumarpatel avatar May 08 '14 19:05 anandkumarpatel