diff options
author | Jim Meyering <jim@meyering.net> | 1996-09-10 03:09:31 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1996-09-10 03:09:31 +0000 |
commit | 9cde1990ab1bfe04cf0ce84c54ccc29c5a0e1c55 (patch) | |
tree | dbd906e01addc002dca53de644132e8278d0ac3e /src/cp.c | |
parent | 3fc07d456b155a8c8171c33db0d3bd1c1f63beb3 (diff) | |
download | coreutils-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.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 |