(main): Revert change of 2001-12-29. With this change,
authorJim Meyering <jim@meyering.net>
Sat, 2 Mar 2002 17:15:42 +0000 (17:15 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 2 Mar 2002 17:15:42 +0000 (17:15 +0000)
cp -r once again preserves symlinks.
(usage): Document the original (now-restored) behavior.

src/cp.c

index fa5dcc8..d2cedcf 100644 (file)
--- a/src/cp.c
+++ b/src/cp.c
@@ -199,7 +199,8 @@ Mandatory arguments to long options are mandatory for short options too.\n\
   -P                           same as `--no-dereference'\n\
 "), stdout);
       fputs (_("\
-  -r                           copy recursively, non-directories as files\n\
+  -r                           copy recursively, non-directories as files,\n\
+                                 but do preserve symbolic links\n\
                                  WARNING: use -R instead when you might copy\n\
                                  special files like FIFOs or /dev/zero\n\
       --remove-destination     remove each existing destination file before\n\
@@ -947,7 +948,6 @@ main (int argc, char **argv)
        case 'r':
          x.recursive = 1;
          x.copy_as_regular = 1;
-         x.dereference = DEREF_ALWAYS;
          if (seen_option_a)
            seen_option_a_then_r = true;
          break;