diff options
author | Eric Blake <ebb9@byu.net> | 2009-10-23 06:59:02 -0600 |
---|---|---|
committer | Eric Blake <ebb9@byu.net> | 2009-10-23 16:24:05 -0600 |
commit | b6540b96ba6510af7b2acc6e81bd9d9583f7c96b (patch) | |
tree | e67b0b04c62f2318ab15e7628832eba1648dc34b /src/env.c | |
parent | 97777f559a80a0de11429402f7dba186eabf5bcd (diff) | |
download | coreutils-b6540b96ba6510af7b2acc6e81bd9d9583f7c96b.tar.xz |
chroot, env, nice, su: use EXIT_CANCELED for internal failure
* src/chroot.c (main): Use EXIT_CANCELED, not EXIT_FAILURE.
* src/env.c (main): Likewise.
* src/nice.c (main): Likewise.
* src/su.c (change_identity, main): Likewise.
* doc/coreutils.texi (chroot invocation, env invocation)
(nice invocation, su invocation): Document this.
* NEWS: Likewise.
* tests/misc/invalid-opt (exit_status): Adjust expected results.
* tests/misc/help-version (expected_failure_status): Likewise.
Diffstat (limited to 'src/env.c')
-rw-r--r-- | src/env.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -142,7 +142,7 @@ main (int argc, char **argv) bindtextdomain (PACKAGE, LOCALEDIR); textdomain (PACKAGE); - initialize_exit_failure (EXIT_FAILURE); + initialize_exit_failure (EXIT_CANCELED); atexit (close_stdout); while ((optc = getopt_long (argc, argv, "+iu:", longopts, NULL)) != -1) @@ -157,7 +157,7 @@ main (int argc, char **argv) case_GETOPT_HELP_CHAR; case_GETOPT_VERSION_CHAR (PROGRAM_NAME, AUTHORS); default: - usage (EXIT_FAILURE); + usage (EXIT_CANCELED); } } |