summaryrefslogtreecommitdiff
path: root/src/cp.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1996-09-10 03:09:31 +0000
committerJim Meyering <jim@meyering.net>1996-09-10 03:09:31 +0000
commit9cde1990ab1bfe04cf0ce84c54ccc29c5a0e1c55 (patch)
treedbd906e01addc002dca53de644132e8278d0ac3e /src/cp.c
parent3fc07d456b155a8c8171c33db0d3bd1c1f63beb3 (diff)
downloadcoreutils-9cde1990ab1bfe04cf0ce84c54ccc29c5a0e1c55.tar.xz
(do_copy): Describe in a little *more* detail the code
that makes `cp non-directory file/' (eventually) fail.
Diffstat (limited to 'src/cp.c')
-rw-r--r--src/cp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cp.c b/src/cp.c
index d61ed5803..977b7ace4 100644
--- a/src/cp.c
+++ b/src/cp.c
@@ -522,7 +522,8 @@ do_copy (int argc, char **argv)
source exists but is not a directory, convert the user's command
`cp source dest/' to `cp source dest/basename(source)'. Doing
this ensures that the command `cp non-directory file/' will now
- fail rather than performing the copy. */
+ fail rather than performing the copy. COPY diagnoses the case of
+ `cp directory non-directory'. */
else if (dest[strlen (dest) - 1] == '/'
&& lstat (source, &source_stats) == 0