It turns out that cp -P on Darwin does not always copy a symlink as
a symlink. In order to get these semantics one must pass -RP. It's not
entirely clear whether this is valid under POSIX, but it is nevertheless
what Apple does.
Fixes #21974 (closed)