Skip to content

Finalize prohibits writing more later #15

@acidtonic

Description

@acidtonic

I noticed that if I use mtar_finalize() the tar cannot be opened again for writing later. The files do not appear inside but the tar size grows.

If I skip calling finalize I can open the tar for writing in append mode and write more files to it without any problems. My tar clients seem to even be able to open them.

Is finalize truly needed? Should I just try to call it at the end of my process which opens and closes the tar multiple times to append it's data. Or as a compromise can I just "unfinalize" by removing the last two null records? Why doesn't the library do that?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions