https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=291132
Bug ID: 291132
Summary: cp(1): copying recursively from / is broken since
82fc0d09e862
Product: Base System
Version: 15.0-RELEASE
Hardware: Any
OS: Any
Status: New
Severity: Affects Many People
Priority: ---
Component: bin
Assignee: [email protected]
Reporter: [email protected]
Commit 82fc0d09e862 introduced an issue which you can reproduce by trying to
copy contents of the root directory to somewhere else.
E.g.:
# mount -t tmpfs tmpfs /tmp
# cp -avx / /tmp
cp: /tmp//: Is a directory
Assertion failed: (strcmp(to.end + (*to.end == '/'), curr->fts_name) == 0),
function copy, file /usr/src/bin/cp/cp.c, line 452.
Abort trap (core dumped)
It seems like a corner case, because I can work around it by doing
# cd /
# cp -avx ./ /tmp
--
You are receiving this mail because:
You are the assignee for the bug.