mirror of
https://git.FreeBSD.org/src.git
synced 2026-06-02 11:24:32 +00:00
54808d5041
When the source of the copy operation is the root directory, we should neither append it to the destination path on FTS_D nor trim it back off on FTS_DP. Approved by: re (cperciva) PR: 291132 MFC after: 3 days Fixes:82fc0d09e8("cp: Partly restore symlink folllowing.") Reviewed by: markj Differential Revision: https://reviews.freebsd.org/D53863 (cherry picked from commitfe836c5012) (cherry picked from commitc4843e5805)