summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2001-12-29 22:58:40 +0000
committerJim Meyering <jim@meyering.net>2001-12-29 22:58:40 +0000
commitc672e2892bef988754beb9a6b1e94576875ec1f3 (patch)
treea0b60651cfd3a0c9e5d06438a00f85a0a16cd078
parent27d553aad26611f368456e3cdb50bfd6203224ba (diff)
downloadcoreutils-c672e2892bef988754beb9a6b1e94576875ec1f3.tar.xz
(main): With -r, always dereference symlinks.
-rw-r--r--src/cp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cp.c b/src/cp.c
index 00bc61afa..d8e33f523 100644
--- a/src/cp.c
+++ b/src/cp.c
@@ -944,6 +944,7 @@ main (int argc, char **argv)
case 'r':
x.recursive = 1;
x.copy_as_regular = 1;
+ x.dereference = DEREF_ALWAYS;
break;
case 'R':