[Bug 2125263] Re: cp -r /dev/urandom copies content
Launchpad Bug Tracker
2125263 at bugs.launchpad.net
Wed Mar 18 11:45:10 UTC 2026
This bug was fixed in the package rust-coreutils - 0.7.0-0ubuntu1
---------------
rust-coreutils (0.7.0-0ubuntu1) resolute; urgency=medium
* New upstream version 0.7.0 (LP: #2143711)
* Fixes:
- `man 1 test` is badly formated (LP: #2115782)
- cp -r /dev/urandom copies content (LP: #2125263)
- date: gnu date allows options after format (LP: #2142588)
- autopkgtest failures in resolute due to readlink (LP: #2141441)
* Refresh patches:
- Tweak-release-build-profile.patch
- dd-ensure-full-writes.patch
- require-utilities-to-be-invoked-using-matching-path.patch
- use-l10n-translations-in-makefile.patch
- workspace-exclude.patch
* Drop patches:
- prevent-stty-termios2-on-ppc64el.patch: Fixed upstream.
* Add patches:
- use-u32-for-ppc64le.patch: Fix type assumption for ppc64 little-endian.
This relates to the previous dropped patch about termios2, but upstream
did not treat little- and big-endian ppc64 differently.
-- Simon Johnsson <simon.johnsson at canonical.com> Mon, 09 Mar 2026
11:33:48 +0100
** Changed in: rust-coreutils (Ubuntu)
Status: Confirmed => Fix Released
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to coreutils-from in Ubuntu.
https://bugs.launchpad.net/bugs/2125263
Title:
cp -r /dev/urandom copies content
Status in rust-coreutils:
Fix Released
Status in coreutils-from package in Ubuntu:
Fix Released
Status in rust-coreutils package in Ubuntu:
Fix Released
Bug description:
The GNU cp command copies character devices as is if -r is specified:
```
# ls -l /dev/urandom
crw-rw-rw- 1 root root 1, 9 May 2 08:49 /dev/urandom
# gnucp -r /dev/urandom foo
# ls -l foo
crw-rw-r-- 1 root root 1, 9 Sep 20 15:38 foo
```
The uutils cp command tries to copy the content.
Ubuntu 25.10 with rust-coreutils 0.1.0+git20250813.4af2a84-0ubuntu7
Forwarded upstream: https://github.com/uutils/coreutils/issues/8679
To manage notifications about this bug go to:
https://bugs.launchpad.net/rust-coreutils/+bug/2125263/+subscriptions
More information about the foundations-bugs
mailing list