From: Jim Meyering Date: Sat, 2 Mar 2002 17:17:49 +0000 (+0000) Subject: add a comment X-Git-Tag: FILEUTILS-4_1_6~17 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3c3e5c4a312f757a2f4e2ffaeb2212ce180b72fe;p=thirdparty%2Fcoreutils.git add a comment --- diff --git a/src/copy.c b/src/copy.c index eb369b243e..16493ab4ca 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)); }