summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2002-03-02 17:17:49 +0000
committerJim Meyering <jim@meyering.net>2002-03-02 17:17:49 +0000
commit3c3e5c4a312f757a2f4e2ffaeb2212ce180b72fe (patch)
tree1153f6a55fdc600502ebdcab92bc4dd10a5dd40f
parente2497bb4fd2f534b3dde89c2c8e6d4df4d5e1291 (diff)
downloadcoreutils-3c3e5c4a312f757a2f4e2ffaeb2212ce180b72fe.tar.xz
add a comment
-rw-r--r--src/copy.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/copy.c b/src/copy.c
index eb369b243..16493ab4c 100644
--- a/src/copy.c
+++ b/src/copy.c
@@ -1408,6 +1408,8 @@ copy_internal (const char *src_path, const char *dst_path,
if (x->recursive && x->copy_as_regular)
{
+ /* Warn that applying `cp -r' to symlinks is not portable,
+ but go ahead and preserve the symlink. */
error (0, 0, _("%s: WARNING: using -r to copy symbolic\
links is not portable"), quote (src_path));
}