From 1408cf26270337c7c95cb0b5075fd303d6227b48 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Mon, 22 Jun 2020 16:33:08 -0400 Subject: Report errors from bsdtar --- lib/archive.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/archive.c') diff --git a/lib/archive.c b/lib/archive.c index 18f0437..6452647 100644 --- a/lib/archive.c +++ b/lib/archive.c @@ -102,6 +102,10 @@ int tar_extract_archive(const char *_archive, const char *_destination) { } status = proc->returncode; + if (status != 0 && SPM_GLOBAL.verbose) { + fprintf(stderr, "%s", proc->output); + } + shell_free(proc); free(archive); free(destination); -- cgit