summaryrefslogtreecommitdiff
path: root/src/chown-core.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/chown-core.c')
-rw-r--r--src/chown-core.c4
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;
}