Still reproducible on Ubuntu 26.04.1 (resolute) with rust-coreutils /
uutils install 0.10.0:

$ f=/dev/shm/install-test; install -m 644 /dev/stdin "$f" <<<one && echo 
"create OK"; install -m 644 /dev/stdin "$f" <<<two && echo "replace OK"; cat 
"$f"
create OK
install: No such file or directory
one

Hit this in practice replacing a root-owned script with `sudo install -o
root -g root -m 0755 /dev/stdin /usr/local/sbin/<script> <<'EOF'`, a
common pattern for config management and agent-written setup steps.
Workaround: `sudo tee <file> >/dev/null`. Upstream fix appears to be
uutils PR #12418.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2146464

Title:
  install doesn't overwrite files like coreutils

To manage notifications about this bug go to:
https://bugs.launchpad.net/rust-coreutils/+bug/2146464/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to