Page MenuHomeFreeBSD

cp: Fix copying to root directory.
ClosedPublic

Authored by des on May 30 2025, 9:11 AM.
Tags
None
Referenced Files
F170775147: D50604.diff
Sun, Sep 6, 1:49 PM
Unknown Object (File)
Tue, Sep 1, 9:42 PM
Unknown Object (File)
Wed, Aug 19, 10:47 PM
Unknown Object (File)
Fri, Aug 14, 9:35 PM
Unknown Object (File)
Sat, Aug 8, 5:18 PM
Unknown Object (File)
Sat, Aug 8, 12:01 PM
Unknown Object (File)
Fri, Aug 7, 7:05 PM
Unknown Object (File)
Aug 7 2026, 5:33 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