(copy_internal): For each symlink copied by cp -r,

issue a warning that `cp -r' is not portable.
This commit is contained in:
Jim Meyering
2002-03-02 17:16:42 +00:00
parent 7a5c83d8d5
commit e2497bb4fd
+6
View File
@@ -1406,6 +1406,12 @@ copy_internal (const char *src_path, const char *dst_path,
goto un_backup;
}
if (x->recursive && x->copy_as_regular)
{
error (0, 0, _("%s: WARNING: using -r to copy symbolic\
links is not portable"), quote (src_path));
}
if (!symlink (src_link_val, dst_path))
free (src_link_val);
else