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)
Thu, Jan 15, 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
Unknown Object (File)
Dec 8 2025, 8:54 PM
Unknown Object (File)
Dec 6 2025, 2:22 AM
Unknown Object (File)
Dec 2 2025, 8:11 PM
Unknown Object (File)
Nov 25 2025, 8:55 PM
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