Date: Fri, 21 Nov 2025 13:35:01 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 291132] cp(1): copying recursively from / is broken since 82fc0d09e862 Message-ID: <bug-291132-227@https.bugs.freebsd.org/bugzilla/>
index | next in thread | raw e-mail
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: bugs@FreeBSD.org Reporter: nohajc@gmail.com 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.home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-291132-227>
