1
0
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:
Lennart Poettering 2018-10-26 18:09:18 +02:00
parent 82f299e74e
commit d02bfa50f6

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