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/chown.c | |
parent | 6c80ecd8d5d3a0642f8cf321f9750f50314ea939 (diff) | |
download | coreutils-74887031996e79df07dae9711f08d80839b31e62.tar.xz |
Change `error (1, ...' to `error (EXIT_FAILURE, ...'.
Diffstat (limited to 'src/chown.c')
-rw-r--r-- | src/chown.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/chown.c b/src/chown.c index a95ff017e..5320f7ade 100644 --- a/src/chown.c +++ b/src/chown.c @@ -181,7 +181,7 @@ main (int argc, char **argv) &old_uid, &old_gid, &u_dummy, &g_dummy); if (e) - error (1, 0, "%s: %s", quote (optarg), e); + error (EXIT_FAILURE, 0, "%s: %s", quote (optarg), e); break; } case 'R': @@ -217,7 +217,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)); uid = ref_stats.st_uid; @@ -230,7 +230,7 @@ main (int argc, char **argv) const char *e = parse_user_spec (argv[optind], &uid, &gid, &chopt.user_name, &chopt.group_name); if (e) - error (1, 0, "%s: %s", quote (argv[optind]), e); + error (EXIT_FAILURE, 0, "%s: %s", quote (argv[optind]), e); /* FIXME: set it to the empty string? */ if (chopt.user_name == NULL) |