Page MenuHomeFreeBSD

cp: Fix copying to root directory.
ClosedPublic

Authored by des on May 30 2025, 9:11 AM.
Tags
None
Referenced Files
F161759235: D50604.diff
Mon, Jul 6, 2:40 PM
Unknown Object (File)
Mon, Jun 22, 3:22 AM
Unknown Object (File)
Thu, Jun 18, 8:07 PM
Unknown Object (File)
Wed, Jun 10, 4:57 PM
Unknown Object (File)
Jun 4 2026, 4:47 PM
Unknown Object (File)
Jun 4 2026, 8:35 AM
Unknown Object (File)
Jun 3 2026, 8:10 AM
Unknown Object (File)
May 21 2026, 3: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