diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2009-02-14 21:09:41 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2009-02-14 21:09:41 +0200 |
commit | 4d17530cad0a5960764379649af4f686d4b08f47 (patch) | |
tree | d319091d178e630b10404ec90b93193e57a13de8 | |
parent | 6eda32159dd6c91c3505432ab3373bb6b6fd9bbb (diff) | |
download | cpio-4d17530cad0a5960764379649af4f686d4b08f47.tar.gz cpio-4d17530cad0a5960764379649af4f686d4b08f47.tar.bz2 |
Fix exit codes
-rw-r--r-- | src/main.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 (); } |