summaryrefslogtreecommitdiff
path: root/NEWS
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2011-05-26 11:15:11 +0100
committerPádraig Brady <P@draigBrady.com>2011-05-27 22:37:46 +0100
commit6b282e7510ca8dcbb44f8402b52ba8c8b1d01b80 (patch)
treeaaa9a4534f95864169598bcb9ec9fdfde1003639 /NEWS
parent8a26bccb467a3b22e5d894234c4b4a5c337294d4 (diff)
downloadcoreutils-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--NEWS4
1 files changed, 4 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index c4238f42d..2a3f8601a 100644
--- a/NEWS
+++ b/NEWS
@@ -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]