import: properly fail if tar exited non-zero, not just when it segfaulted or such

This commit is contained in:
Lennart Poettering 2018-10-26 18:09:18 +02:00
parent 82f299e74e
commit d02bfa50f6
1 changed files with 2 additions and 0 deletions

View File

@ -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);