Page MenuHomeFreeBSD

cp: Fix copying the root directory
AcceptedPublic

Authored by des on Fri, Nov 21, 6:03 PM.
Tags
None
Referenced Files
F137306704: D53863.id166921.diff
Sat, Nov 22, 6:59 AM
F137303598: D53863.id.diff
Sat, Nov 22, 6:03 AM
F137299284: D53863.id166921.diff
Sat, Nov 22, 4:54 AM
F137299014: D53863.id.diff
Sat, Nov 22, 4:49 AM
F137298717: D53863.diff
Sat, Nov 22, 4:43 AM
F137296146: D53863.diff
Sat, Nov 22, 4:24 AM
Subscribers

Details

Reviewers
markj
Summary

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.

PR: 291132
MFC after: 3 days
Fixes: 82fc0d09e862 ("cp: Partly restore symlink folllowing.")

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 68789
Build 65672: arc lint + arc unit