Public bug reported:
Ubuntu 26.04 ships /usr/bin/chown from uutils coreutils:
chown (uutils coreutils) 0.8.0
rust-coreutils 0.8.0-0ubuntu3
while Ubuntu 24.04 ships:
chown (GNU coreutils) 9.4
I have observed two GNU compatibility regressions in chown on Ubuntu
26.04.
Problem 1: trailing ':' does not set login group
According to GNU chown behavior, a trailing colon after the owner name
should change the group to the owner's login group.
Example:
chown perforce: ownergroup_test
Expected:
perforce:perforce
Actual:
perforce:root
The owner changes, but the group remains unchanged.
Problem 2: chown -h follows symlinks to directories
When operating on a symbolic link to a regular file:
chown -h perforce symlink
behaves as expected and changes ownership of the symlink itself.
However, when operating on a symbolic link to a directory:
chown -h perforce symlink_to_subdir
the ownership of the target directory is changed, while the ownership
of the symbolic link remains unchanged.
Expected:
ownership of the symlink changes
ownership of the target directory remains unchanged
Actual:
ownership of the target directory changes
ownership of the symbolic link remains unchanged
Environment:
Ubuntu 26.04 LTS
rust-coreutils 0.8.0-0ubuntu3
coreutils-from-uutils 0.0.0~ubuntu25
arm64
I have attached:
* detailed reproduction steps
* apport-generated package information
* command output showing the regressions
* comparison results from Ubuntu 24.04 (GNU coreutils)
These behaviors differ from GNU coreutils and appear to be compatibility
regressions.
In addition to being a GNU compatibility regression, the observed
behavior could have operational and permission-management implications
because ownership may be applied to objects different from those
specified with chown commands.
** Affects: rust-coreutils (Ubuntu)
Importance: Undecided
Status: New
** Attachment added: "Markdown file with over of findings, repro steps, test
script, etc."
https://bugs.launchpad.net/bugs/2161574/+attachment/5985476/+files/launchpad.Ubuntu26_chown_POSIX_regressions.md
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2161574
Title:
uutils chown 0.8.0 has GNU compatibility regressions for trailing ':'
syntax and chown -h on symlinks to directories
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/rust-coreutils/+bug/2161574/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs