mirror of
https://github.com/systemd/systemd.git
synced 2025-03-31 14:50:15 +03:00
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;
|
||||
if (r < 0)
|
||||
return r;
|
||||
if (r != EXIT_SUCCESS)
|
||||
return -EPROTO;
|
||||
}
|
||||
|
||||
r = import_mangle_os_tree(i->temp_path);
|
||||
|
Loading…
x
Reference in New Issue
Block a user