diff options
author | Jim Meyering <jim@meyering.net> | 2002-08-30 23:04:53 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2002-08-30 23:04:53 +0000 |
commit | 74887031996e79df07dae9711f08d80839b31e62 (patch) | |
tree | d249c7ea293b5540ca108f3b40733401544b29ba /src/chgrp.c | |
parent | 6c80ecd8d5d3a0642f8cf321f9750f50314ea939 (diff) | |
download | coreutils-74887031996e79df07dae9711f08d80839b31e62.tar.xz |
Change `error (1, ...' to `error (EXIT_FAILURE, ...'.
Diffstat (limited to 'src/chgrp.c')
-rw-r--r-- | src/chgrp.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/chgrp.c b/src/chgrp.c index 3253b0fb5..491433090 100644 --- a/src/chgrp.c +++ b/src/chgrp.c @@ -90,7 +90,7 @@ parse_group (const char *name, gid_t *g) struct group *grp; if (*name == '\0') - error (1, 0, _("cannot change to null group")); + error (EXIT_FAILURE, 0, _("cannot change to null group")); grp = getgrnam (name); if (grp == NULL) @@ -99,14 +99,14 @@ parse_group (const char *name, gid_t *g) unsigned long int tmp_long; if (!ISDIGIT (*name)) - error (1, 0, _("invalid group name %s"), quote (name)); + error (EXIT_FAILURE, 0, _("invalid group name %s"), quote (name)); s_err = xstrtoul (name, NULL, 0, &tmp_long, NULL); if (s_err != LONGINT_OK) STRTOL_FATAL_ERROR (name, _("group number"), s_err); if (tmp_long > MAXGID) - error (1, 0, _("invalid group number %s"), quote (name)); + error (EXIT_FAILURE, 0, _("invalid group number %s"), quote (name)); *g = tmp_long; } @@ -215,7 +215,7 @@ main (int argc, char **argv) { struct stat ref_stats; if (stat (reference_file, &ref_stats)) - error (1, errno, _("failed to get attributes of %s"), + error (EXIT_FAILURE, errno, _("failed to get attributes of %s"), quote (reference_file)); chopt.group_name = gid_to_name (ref_stats.st_gid); |