Return to Ubuntu Rust Coreutils' cp utility caused a crash when building livecd-rootfs

Developers Ubuntu We reverted to the GNU Coreutils version of the cp utility after discovering an incompatibility in the Rust Coreutils implementation of cp, which caused the Live image build script (livecd-rootfs) to fail.

In release Ubuntu On 24.04, due to discovered vulnerabilities, the cp, mv, and rm utilities from GNU Coreutils were returned, but in the coreutils-from-uutils 0.0.0~ package updateubuntu26, the use of utilities from the Rust Coreutils suite was resumed. The problem arose due to a call to the cp utility in the build script with the "-afL" options, which were handled normally in GNU Coreutils, but in Rust Coreutils resulted in the error "cp: -r not specified; omitting directory" ".

The error occurred due to different behavior when handling conflicting "-L" and "-a" options. The "-L" option forces dereferencing of symbolic links, while the "-a" compound option, which is replaced by "-dR --preserve=all," contains the "-d" option, which prohibits dereferencing of symbolic links. In Rust Coreutils, the "-a" compound option was discarded entirely instead of separately removing the conflicting "-d" flag. This resulted in the disappearance of the "-R" flag, which is required for recursive directory copying, as well as the "--preserve=all" flag, which is used to preserve previous attributes in the copy.

Source: opennet.ru

Buy reliable hosting for sites with DDoS protection, VPS VDS servers 🔥 Buy reliable website hosting with DDoS protection, VPS VDS servers | ProHoster