diff options
author | Jim Meyering <jim@meyering.net> | 2000-12-10 08:04:50 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2000-12-10 08:04:50 +0000 |
commit | cf302e3bc9af0b3e639b52a96e077c3199f2cf4e (patch) | |
tree | 2162ab2c104bcfbe81a37084341c3a33239758ee /src | |
parent | b50fed9980a13206a68a41919985889ba2e0d107 (diff) | |
download | coreutils-cf302e3bc9af0b3e639b52a96e077c3199f2cf4e.tar.xz |
give a better diagnostic when only the group is being changed
Diffstat (limited to 'src')
-rw-r--r-- | src/chown-core.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/chown-core.c b/src/chown-core.c index 2899f587b..0d7a1c43d 100644 --- a/src/chown-core.c +++ b/src/chown-core.c @@ -245,7 +245,9 @@ change_file_owner (int cmdline_arg, const char *file, uid_t user, gid_t group, if (fail) { if (chopt->force_silent == 0) - error (0, saved_errno, _("changing ownership of %s"), + error (0, saved_errno, (user != (uid_t) -1 + ? _("changing ownership of %s") + : _("changing group of %s")), quote (file)); errors = 1; } |