X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;ds=sidebyside;f=src%2Fextract.c;h=5f12cf9aa483b3584bf02e9daa3678db976dc534;hb=cac45fffc58cc10056c528582ee4b78b8ee175e0;hp=3c92e53d6d1e3f686e939c419e0df03159bb480b;hpb=67a1a0eac50404799328448ae7540696cc3f6c79;p=chaz%2Ftar diff --git a/src/extract.c b/src/extract.c index 3c92e53..5f12cf9 100644 --- a/src/extract.c +++ b/src/extract.c @@ -1242,6 +1242,8 @@ extract_archive (void) char typeflag; tar_extractor_t fun; + fatal_exit_hook = extract_finish; + /* Try to disable the ability to unlink a directory. */ priv_set_remove_linkdir (); @@ -1406,18 +1408,3 @@ rename_directory (char *src, char *dst) } return true; } - -void -fatal_exit (void) -{ - extract_finish (); - error (TAREXIT_FAILURE, 0, _("Error is not recoverable: exiting now")); - abort (); -} - -void -xalloc_die (void) -{ - error (0, 0, "%s", _("memory exhausted")); - fatal_exit (); -}