ZIP_UNCHANGE_ARCHIVE(3)

πŸ“¦
version 1.11.4 Β· 3 versions
, in arch rolling, debian trixie, fedora 43, fedora 44, nixpkgs unstable, ubuntu questing, ubuntu resolute, ubuntu stonking

✨ NAME ✨

zip_unchange_archive β€” undo global changes to zip archive πŸ’–

okay bestie, this is a libzip manual page, specifically the one for zip_unchange_archive(3). she's a tiny little function with one job and she does it flawlessly, no cap.


πŸ“š LIBRARY πŸ“š

libzip (-lzip) β€” that's the link flag, don't forget it πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <zip.h>

int
zip_unchange_archive(zip_t *archive);

πŸ’… DESCRIPTION πŸ’…

okay so here's the tea: zip_unchange_archive() reverts all the global changes to the archive called archive. like, all of them. not some. all.

and what counts as "global" here? it's giving:

  • changes to the archive comment πŸ’¬
  • changes to the global flags 🚩

that's it, that's the whole vibe. she takes your archive back to how it was before you started messing with the global stuff. a little ctrl+z for the archive itself, fr fr 🫢

heads up: this is the global undo. if you're trying to undo per-file changes, that's a whole different function, bestie β€” check the SEE ALSO section below πŸ‘€

🌸 RETURN VALUES 🌸

  • on success? she returns 0 ✨ iconic, flawless, no notes.
  • on failure? she returns -1 😭 and the error code in archive gets set to tell you what went wrong.

so like, always check that return value. 0 good, -1 bad, and the archive is holding the receipts.


πŸ‘‘ SEE ALSO πŸ‘‘

the whole unchange-iverse. go read them, iykyk πŸ’œ


🌈 HISTORY 🌈

zip_unchange_archive() was added in libzip 0.7 β€” she's been serving since way back, a true veteran πŸ’…


πŸŽ€ AUTHORS πŸŽ€

  • Dieter Baron <dillo@nih.at>
  • Thomas Klausner <wiz@gatalith.at>

absolute legends, we stan 🫢


and that's the page, bestie!! this one came from the Debian crew, dated December 18, 2017, and it's part of the ZIP_UNCHANGE_ARCHIVE(3) manual. go forth and unchange your archive globals, you've got this πŸ’–βœ¨πŸ¦‹