import: properly fail if tar exited non-zero, not just when it segfaulted or such
This commit is contained in:
parent
82f299e74e
commit
d02bfa50f6
|
@ -175,6 +175,8 @@ static int tar_import_finish(TarImport *i) {
|
||||||
i->tar_pid = 0;
|
i->tar_pid = 0;
|
||||||
if (r < 0)
|
if (r < 0)
|
||||||
return r;
|
return r;
|
||||||
|
if (r != EXIT_SUCCESS)
|
||||||
|
return -EPROTO;
|
||||||
}
|
}
|
||||||
|
|
||||||
r = import_mangle_os_tree(i->temp_path);
|
r = import_mangle_os_tree(i->temp_path);
|
||||||
|
|
Loading…
Reference in New Issue