Public bug reported: 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 ** Affects: rust-coreutils (Ubuntu) Importance: Undecided Status: New ** Description changed: 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 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2125263 Title: cp -r /dev/urandom copies content To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/rust-coreutils/+bug/2125263/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
