From c23c89db0f1be58c5e324be6e085f41733c1286f Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sat, 16 Jun 2007 12:53:40 +0200 Subject: Make chgrp and chown diagnostics consistent. * src/chown.c (main): Emit the diagnostic before the file name, not after it, to be consistent with chgrp's diagnostic. * src/chgrp.c (parse_group): Emit a ":" between the diagnostic and the file name. Reported by Egmont Koblinger. * THANKS: Add Egmont Koblinger. --- src/chgrp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/chgrp.c') diff --git a/src/chgrp.c b/src/chgrp.c index 1778a8d69..0560aa446 100644 --- a/src/chgrp.c +++ b/src/chgrp.c @@ -1,5 +1,5 @@ /* chgrp -- change group ownership of files - Copyright (C) 89, 90, 91, 1995-2006 Free Software Foundation, Inc. + Copyright (C) 89, 90, 91, 1995-2007 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -92,7 +92,7 @@ parse_group (const char *name) unsigned long int tmp; if (! (xstrtoul (name, NULL, 10, &tmp, "") == LONGINT_OK && tmp <= GID_T_MAX)) - error (EXIT_FAILURE, 0, _("invalid group %s"), quote (name)); + error (EXIT_FAILURE, 0, _("invalid group: %s"), quote (name)); gid = tmp; } endgrent (); /* Save a file descriptor. */ -- cgit v1.2.3-54-g00ecf