From 7a5c83d8d53223c7b0e494175ee5e44b2ed555c3 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sat, 2 Mar 2002 17:15:42 +0000 Subject: (main): Revert change of 2001-12-29. With this change, cp -r once again preserves symlinks. (usage): Document the original (now-restored) behavior. --- src/cp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/cp.c') diff --git a/src/cp.c b/src/cp.c index fa5dcc805..d2cedcfac 100644 --- 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; -- cgit v1.2.3-54-g00ecf