aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2009-02-14 21:09:41 +0200
committerSergey Poznyakoff <gray@gnu.org.ua>2009-02-14 21:09:41 +0200
commit4d17530cad0a5960764379649af4f686d4b08f47 (patch)
treed319091d178e630b10404ec90b93193e57a13de8
parent6eda32159dd6c91c3505432ab3373bb6b6fd9bbb (diff)
downloadcpio-4d17530cad0a5960764379649af4f686d4b08f47.tar.gz
cpio-4d17530cad0a5960764379649af4f686d4b08f47.tar.bz2
Fix exit codes
-rw-r--r--src/main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main.c b/src/main.c
index 2d2de95..4f2fca3 100644
--- a/src/main.c
+++ b/src/main.c
@@ -606,7 +606,7 @@ process_args (int argc, char *argv[])
xstat = lstat;
if (argp_parse (&argp, argc, argv, ARGP_IN_ORDER|ARGP_NO_HELP, &index, NULL))
- exit (1);
+ exit (PAXEXIT_FAILURE);
/* Do error checking and look at other args. */
@@ -795,7 +795,7 @@ main (int argc, char *argv[])
(*copy_function) ();
if (archive_des >= 0 && rmtclose (archive_des) == -1)
- error (1, errno, _("error closing archive"));
+ error (PAXEXIT_FAILURE, errno, _("error closing archive"));
- exit (0);
+ pax_exit ();
}

Return to:

Send suggestions and report system problems to the System administrator.