From de9f0a79850df74078b8c104ce1232d40ec9cc1f Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Wed, 1 May 2019 01:41:30 +0200 Subject: Add id table code stub Signed-off-by: David Oberhollenzer --- mkfs/mksquashfs.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'mkfs/mksquashfs.c') diff --git a/mkfs/mksquashfs.c b/mkfs/mksquashfs.c index 7503978..3272dbc 100644 --- a/mkfs/mksquashfs.c +++ b/mkfs/mksquashfs.c @@ -84,10 +84,13 @@ int main(int argc, char **argv) return EXIT_FAILURE; } + if (id_table_init(&info.idtbl)) + return EXIT_FAILURE; + info.outfd = open(info.opt.outfile, info.opt.outmode, 0644); if (info.outfd < 0) { perror(info.opt.outfile); - return EXIT_FAILURE; + goto out_idtbl; } if (sqfs_super_write(&info.super, info.outfd)) @@ -129,5 +132,7 @@ out_fstree: fstree_cleanup(&info.fs); out_outfd: close(info.outfd); +out_idtbl: + id_table_cleanup(&info.idtbl); return status; } -- cgit v1.2.3