From: Lennart Poettering Date: Fri, 26 Oct 2018 16:09:18 +0000 (+0200) Subject: import: properly fail if tar exited non-zero, not just when it segfaulted or such X-Git-Tag: v240~175^2~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d02bfa50f6ca1bb0a4761a0adda1558b87474922;p=thirdparty%2Fsystemd.git import: properly fail if tar exited non-zero, not just when it segfaulted or such --- diff --git a/src/import/import-tar.c b/src/import/import-tar.c index 896effab77e..0bb086f1429 100644 --- a/src/import/import-tar.c +++ b/src/import/import-tar.c @@ -175,6 +175,8 @@ static int tar_import_finish(TarImport *i) { i->tar_pid = 0; if (r < 0) return r; + if (r != EXIT_SUCCESS) + return -EPROTO; } r = import_mangle_os_tree(i->temp_path);