]> git.ipfire.org Git - thirdparty/coreutils.git/commit
chown,chgrp: reinstate numeric id output in -v messages
authorPádraig Brady <P@draigBrady.com>
Sat, 12 Feb 2022 21:20:21 +0000 (21:20 +0000)
committerPádraig Brady <P@draigBrady.com>
Sun, 13 Feb 2022 14:20:16 +0000 (14:20 +0000)
commit26db930c81701953d2850289bd6a835362ff8cd0
tree6b0ce899399683997d1c0db1dff7b0df73cdb565
parentd8047ae86d5418782db7ec906c10e1af4f129997
chown,chgrp: reinstate numeric id output in -v messages

since gnulib commit ff208d546a,
related to coreutils commit v9.0-143-gabde15969
we no longer maintain numeric IDs through chopt->{user,group}_name.
Therefore we need to adjust to ensure tests/chown/basic.sh passes.

* src/chown-core.c (uid_to_str, gid_to_str): New helper functions
to convert numeric id to string.
(change_file_owner): Use the above new functions to pass
numeric ids to describe_change().
src/chown-core.c