Page MenuHomeFreeBSD

cp: Fix copying to root directory.
ClosedPublic

Authored by des on May 30 2025, 9:11 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Feb 28, 4:21 AM
Unknown Object (File)
Thu, Feb 26, 2:31 PM
Unknown Object (File)
Thu, Feb 26, 1:38 PM
Unknown Object (File)
Thu, Feb 26, 6:46 AM
Unknown Object (File)
Jan 15 2026, 5:42 AM
Unknown Object (File)
Dec 30 2025, 4:48 PM
Unknown Object (File)
Dec 28 2025, 4:52 PM
Unknown Object (File)
Dec 10 2025, 8:43 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