Red Hat Bugzilla – Bug 785952
chown verbose reports incorrect retained user:group for objects not matched to with --from=
Last modified: 2012-02-08 17:59:59 EST
Description of problem:
F16/Chown command when used together with options -v and --from= prints out incorrect information on retained owner and group for targets left untouched due to not matching arguments of --from: it prints out the owner:group you tried to change to instead of the actual retained owner and group. email@example.com confirmed that this does not occur on stock GNU/coreutils - at least as of coreutils-8.15. They also confirmed F16/coreutils-8.12-2 was affected.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1.sudo su -
3.chown 500:500 test
4.chown -v --from=600:600 1000:1000 test
Any object not matched with --from= produces output like:
ownership of `test' retained as 1000:1000
printout: ownership of `test' retained as 500:500
The non-matched objects do retain their original owner and group.
The output is the same for non-root users as well. The problem only seems to lie in the verbose printout of chown: the actual owner change itself as well as the --from matching would appear to be unaffected (haven't tested extensively though). The incorrect verbose output can, nonetheless, be quite confusing if the verbose output is actually used for something, like verifying operation of "chown -R" on large batch on files for instance.
Yep this was fixed in 8.13
And update for this is alredy submitted - see https://admin.fedoraproject.org/updates/FEDORA-2012-1031/coreutils-8.12-6.fc16
coreutils-8.12-6.fc16 has been submitted as an update for Fedora 16.
coreutils-8.12-6.fc16 has been pushed to the Fedora 16 stable repository. If problems still persist, please make note of it in this bug report.