Merge remote-tracking branch 'qubesos/pr/5'

* qubesos/pr/5:
  qfile-unpacker: Avoid data loss by checking for child errors

Fixes QubesOS/qubes-issues#1355
This commit is contained in:
Marek Marczykowski-Górecki 2015-11-02 21:27:02 +01:00
commit 8f99cb5759
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -90,5 +90,8 @@ int main(int argc __attribute((__unused__)), char ** argv __attribute__((__unuse
}
if (umount2(".", MNT_DETACH) < 0)
gui_fatal("Cannot umount incoming directory");
return ret;
if (!WIFEXITED(ret)) {
gui_fatal("Child process exited abnormally");
}
return WEXITSTATUS(ret);
}