diff options
author | Pádraig Brady <P@draigBrady.com> | 2011-05-26 11:15:11 +0100 |
---|---|---|
committer | Pádraig Brady <P@draigBrady.com> | 2011-05-27 22:37:46 +0100 |
commit | 6b282e7510ca8dcbb44f8402b52ba8c8b1d01b80 (patch) | |
tree | aaa9a4534f95864169598bcb9ec9fdfde1003639 /NEWS | |
parent | 8a26bccb467a3b22e5d894234c4b4a5c337294d4 (diff) | |
download | coreutils-6b282e7510ca8dcbb44f8402b52ba8c8b1d01b80.tar.xz |
chown,chgrp: output the correct ownership in -v messages
* src/chown_core.c (describe_change): Accept the ownership of
the original file and output that when not changing.
This is significant when --from is specified as then
the original and specified ownership may be different.
(user_group_str): A new helper function refactored from
describe_change().
(change_file_owner): Pass the original user and group
strings to describe_change().
* test/chown/basic: Add a test case.
* NEWS: Mention the fix.
Diffstat (limited to 'NEWS')
-rw-r--r-- | NEWS | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -4,6 +4,10 @@ GNU coreutils NEWS -*- outline -*- ** Bug fixes + chown and chgrp with the -v --from= options, now output the correct owner. + I.E. for skipped files, the original ownership is output, not the new one. + [bug introduced in sh-utils-2.0g] + printf '%d' '"' no longer accesses out-of-bounds memory in the diagnostic. [bug introduced in sh-utils-1.16] |