Page MenuHomeFreeBSD

cp: Fix copying to root directory.
ClosedPublic

Authored by des on May 30 2025, 9:11 AM.
Tags
None
Referenced Files
F133045025: D50604.diff
Wed, Oct 22, 10:10 AM
F133022007: D50604.diff
Wed, Oct 22, 3:53 AM
Unknown Object (File)
Fri, Oct 17, 2:54 AM
Unknown Object (File)
Thu, Oct 9, 10:21 AM
Unknown Object (File)
Sep 5 2025, 2:00 PM
Unknown Object (File)
Sep 5 2025, 12:59 AM
Unknown Object (File)
Aug 30 2025, 1:12 PM
Unknown Object (File)
Aug 13 2025, 4:58 AM
Subscribers

Details

Summary

The trailing-slash logic would strip the target down to an empty
string, which we would then fail to stat, and subsequently attempt
(and fail) to create.

Fixes: 82fc0d09e862
Sponsored by: Klara, Inc.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable