]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(do_copy): Describe in a little *more* detail the code
authorJim Meyering <jim@meyering.net>
Tue, 10 Sep 1996 03:09:31 +0000 (03:09 +0000)
committerJim Meyering <jim@meyering.net>
Tue, 10 Sep 1996 03:09:31 +0000 (03:09 +0000)
that makes `cp non-directory file/' (eventually) fail.

src/cp.c

index d61ed580314a6ea6e391b02e53f1dfca501bd65c..977b7ace47e308c339613a40eaab450f7c35be8b 100644 (file)
--- 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