Martin Raiber

Results 28 comments of Martin Raiber

Would it be feasible to fall back to `eval` the script if executing it in the temporary directory does not work?

I just tried and I guess I can run `/bin/sh` with the script as the argument (the question is if this works more reliably on different Linux distributions, running it...

I have added the extra_data parameters with miniz 2 when adding files. I have nothing against functions to contruct said extra data. It's just hard to find a specification for...

Yes, I guess we could set it to 10.2.0 with 2.1.0.

Or I think is better if we just pretend 10 is binary for "2"

Please reopen if @f10kk suggestion does not help

If they are so rare, I guess we could add it but condition it on a define being set? E.g. MINIZ_WITH_DEFLATE64 ? @jsummers Could you do a pull request for...

Error 7 is MZ_ZIP_FAILED_FINDING_CENTRAL_DIR, which means it cannot find the zip central directory. Maybe you did not read the whole zip file into memory?

You need to set zip_archive->m_pWrite before calling mz_zip_writer_init. If you want to write to a file use mz_zip_writer_init_*file*

Yes, it needs a better documentation/examples. Here is zip writing with callback function: https://github.com/uroni/urbackup_backend/blob/dev/urbackupserver/serverinterface/create_zip.cpp