debcrafters-packages team mailing list archive
-
debcrafters-packages team
-
Mailing list archive
-
Message #07841
[Bug 2122363] Re: cp -T: prefix not found
This bug was fixed in the package mkosi - 25.3-5ubuntu2
---------------
mkosi (25.3-5ubuntu2) questing; urgency=medium
* tree: prefer GNU cp in copy_tree() (LP: #2122363)
-- Nick Rosbrook <enr0n@xxxxxxxxxx> Mon, 22 Sep 2025 10:26:27 -0400
** Changed in: mkosi (Ubuntu)
Status: New => Fix Released
--
You received this bug notification because you are a member of
Debcrafters packages, which is subscribed to systemd in Ubuntu.
https://bugs.launchpad.net/bugs/2122363
Title:
cp -T: prefix not found
Status in mkosi package in Ubuntu:
Fix Released
Status in rust-coreutils package in Ubuntu:
Confirmed
Status in subiquity package in Ubuntu:
Fix Released
Status in systemd package in Ubuntu:
New
Bug description:
with rust-coreutils, cp -T fails to behave like gnucp when using it to
copy a source directory to a target location and that location doesn't
exist yet.
```
#!/bin/bash
set -eux
rm -fr src dst
mkdir src
touch src/file.txt
/usr/lib/cargo/bin/coreutils/cp -aT src dst
[ -f dst/file.txt ]
```
Workarounds:
* remove -T from the cp invocation
* mkdir dst before the cp invocation
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/mkosi/+bug/2122363/+subscriptions