summaryrefslogtreecommitdiff
path: root/src/chroot.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2002-08-30 23:04:53 +0000
committerJim Meyering <jim@meyering.net>2002-08-30 23:04:53 +0000
commit74887031996e79df07dae9711f08d80839b31e62 (patch)
treed249c7ea293b5540ca108f3b40733401544b29ba /src/chroot.c
parent6c80ecd8d5d3a0642f8cf321f9750f50314ea939 (diff)
downloadcoreutils-74887031996e79df07dae9711f08d80839b31e62.tar.xz
Change `error (1, ...' to `error (EXIT_FAILURE, ...'.
Diffstat (limited to 'src/chroot.c')
-rw-r--r--src/chroot.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/chroot.c b/src/chroot.c
index 4904c84d6..f63ab2a53 100644
--- a/src/chroot.c
+++ b/src/chroot.c
@@ -1,5 +1,5 @@
/* chroot -- run command or shell with special root directory
- Copyright (C) 95, 96, 1997, 1999, 2000, 2001 Free Software Foundation, Inc.
+ Copyright (C) 95, 96, 1997, 1999-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
@@ -80,10 +80,11 @@ main (int argc, char **argv)
}
if (chroot (argv[1]))
- error (1, errno, _("cannot change root directory to %s"), argv[1]);
+ error (EXIT_FAILURE, errno,
+ _("cannot change root directory to %s"), argv[1]);
if (chdir ("/"))
- error (1, errno, _("cannot chdir to root directory"));
+ error (EXIT_FAILURE, errno, _("cannot chdir to root directory"));
if (argc == 2)
{