I've created two patches which simplifies the restore pipeline code,
corrects some ancient memory management problems, and corrects
the library functions restore() and read_file_header() to return...