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?
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?