libmpm

morphux C package management library
Log | Files | Refs | Submodules | README | LICENSE | git clone https://git.ne02ptzero.me/git/libmpm

commit fdc3af628b40c2040a6810e8b5ca6d34b6741c5a
parent 4c91a7db987501e3129f2bb08e76eb3d34a9b327
Author: Ne02ptzero <louis@ne02ptzero.me>
Date:   Thu, 20 Apr 2017 17:32:01 +0200

Fix(Packer): Now returning an error to the handler:

And update submodule lib/libmorphux

Diffstat:
Msrc/packer.c | 8+++++++-
1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/src/packer.c b/src/packer.c @@ -650,9 +650,15 @@ bool packer_create_archive(packer_t *ctx, const char *archive_path) { return false; write_package_header(fd, ctx); - write_package_sources(fd, ctx); + if (write_package_sources(fd, ctx) == false) + goto error; + fclose(fd); return true; + +error: + fclose(fd); + return false; } MPX_STATIC int read_package_header_package(const char *file, packer_t *ctx)