cp: give a better diagnostic for nonexistent dest/
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 22 Nov 2010 02:50:41 +0000 (18:50 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 22 Nov 2010 08:04:50 +0000 (00:04 -0800)
commit013d95af11f41cbe05abdb73c997040dce4301f8
tree41f34f8864051e6cf0d219c3a29d2c9060d870f0
parentbe107398e56e9f6ada8cd558b3f43bb1ed70fb84
cp: give a better diagnostic for nonexistent dest/

This patch was written by Jim Meyering and myself.
* src/copy.c (copy_reg): Turn EISDIR to ENOTDIR to improve the
quality of diagnostics for commands like "cp a nosuch/".  Reported
by Марк Коренберг and Alan Curry in the thread starting at:
http://lists.gnu.org/archive/html/bug-coreutils/2010-11/msg00178.html
* THANKS: Update.
* tests/mv/trailing-slash: Add a test.
THANKS
src/copy.c
tests/mv/trailing-slash