summaryrefslogtreecommitdiff
path: root/src/chroot.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2007-08-29 00:13:16 +0200
committerJim Meyering <jim@meyering.net>2007-08-29 00:14:23 +0200
commit35755454e45a6cbab4c711353131df483d89a979 (patch)
treed2bb8299b0d0678fadb121db71f8278eea680e82 /src/chroot.c
parentadfc479d47cb0323b4dd4fa93ed9a5df6a93b7b8 (diff)
downloadcoreutils-35755454e45a6cbab4c711353131df483d89a979.tar.xz
Use EXIT_FAILURE, not EXIT_FAIL, now that EXIT_FAILURE is always 1.
* src/system.h (EXIT_FAIL): Remove definition. * src/chroot.c (main): EXIT_FAIL -> EXIT_FAILURE. * src/env.c (main): Likewise. * src/nice.c (main): Likewise. * src/su.c (change_identity, main): Likewise. * src/tty.c (main): Likewise. Suggestion from Eric Blake.
Diffstat (limited to 'src/chroot.c')
-rw-r--r--src/chroot.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/chroot.c b/src/chroot.c
index 67bf07497..4d23fabcc 100644
--- a/src/chroot.c
+++ b/src/chroot.c
@@ -70,25 +70,25 @@ main (int argc, char **argv)
bindtextdomain (PACKAGE, LOCALEDIR);
textdomain (PACKAGE);
- initialize_exit_failure (EXIT_FAIL);
+ initialize_exit_failure (EXIT_FAILURE);
atexit (close_stdout);
parse_long_options (argc, argv, PROGRAM_NAME, GNU_PACKAGE, VERSION,
usage, AUTHORS, (char const *) NULL);
if (getopt_long (argc, argv, "+", NULL, NULL) != -1)
- usage (EXIT_FAIL);
+ usage (EXIT_FAILURE);
if (argc <= optind)
{
error (0, 0, _("missing operand"));
- usage (EXIT_FAIL);
+ usage (EXIT_FAILURE);
}
if (chroot (argv[optind]) != 0)
- error (EXIT_FAIL, errno, _("cannot change root directory to %s"), argv[1]);
+ error (EXIT_FAILURE, errno, _("cannot change root directory to %s"), argv[1]);
if (chdir ("/"))
- error (EXIT_FAIL, errno, _("cannot chdir to root directory"));
+ error (EXIT_FAILURE, errno, _("cannot chdir to root directory"));
if (argc == optind + 1)
{