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/chmod.c | |
parent | 6c80ecd8d5d3a0642f8cf321f9750f50314ea939 (diff) | |
download | coreutils-74887031996e79df07dae9711f08d80839b31e62.tar.xz |
Change `error (1, ...' to `error (EXIT_FAILURE, ...'.
Diffstat (limited to 'src/chmod.c')
-rw-r--r-- | src/chmod.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/chmod.c b/src/chmod.c index 852fe47e6..8abbd618b 100644 --- a/src/chmod.c +++ b/src/chmod.c @@ -1,5 +1,5 @@ /* chmod -- change permission modes of files - Copyright (C) 89, 90, 91, 1995-2001 Free Software Foundation, Inc. + Copyright (C) 89, 90, 91, 1995-2002 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 @@ -318,7 +318,7 @@ main (int argc, char **argv) { static char char_string[2] = {0, 0}; char_string[0] = c; - error (1, 0, _("invalid character %s in mode string %s"), + error (EXIT_FAILURE, 0, _("invalid character %s in mode string %s"), quote_n (0, char_string), quote_n (1, argv[thisind])); } modeind = thisind; @@ -358,11 +358,12 @@ main (int argc, char **argv) : mode_compile (argv[modeind], MODE_MASK_ALL)); if (changes == MODE_INVALID) - error (1, 0, _("invalid mode string: %s"), quote (argv[modeind])); + error (EXIT_FAILURE, 0, + _("invalid mode string: %s"), quote (argv[modeind])); else if (changes == MODE_MEMORY_EXHAUSTED) xalloc_die (); else if (changes == MODE_BAD_REFERENCE) - error (1, errno, _("failed to get attributes of %s"), + error (EXIT_FAILURE, errno, _("failed to get attributes of %s"), quote (reference_file)); for (; optind < argc; ++optind) |