From 09fa569c7bcfd26c9cf3cb7bb04a1084e745042b Mon Sep 17 00:00:00 2001 From: Guido Draheim Date: Mon, 5 Feb 2018 15:26:22 +0100 Subject: [PATCH] ignore dir-entries errors elsewhere as well --- bins/unzzipcat-big.c | 4 ++-- bins/unzzipcat-mem.c | 4 ++-- bins/unzzipcat-mix.c | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/bins/unzzipcat-big.c b/bins/unzzipcat-big.c index 727116e..0efd878 100644 --- a/bins/unzzipcat-big.c +++ b/bins/unzzipcat-big.c @@ -108,7 +108,7 @@ static int unzzip_cat (int argc, char ** argv, int extract) } if (extract) out = create_fopen(name, "w", 1); if (! out) { - done = EXIT_ERRORS; + if (errno != EISDIR) done = EXIT_ERRORS; continue; } unzzip_cat_file (disk, name, out); @@ -141,7 +141,7 @@ static int unzzip_cat (int argc, char ** argv, int extract) FILE* out = stdout; if (extract) out = create_fopen(name, "w", 1); if (! out) { - done = EXIT_ERRORS; + if (errno != EISDIR) done = EXIT_ERRORS; continue; } unzzip_cat_file (disk, name, out); diff --git a/bins/unzzipcat-mem.c b/bins/unzzipcat-mem.c index 8e4cd05..b81c703 100644 --- a/bins/unzzipcat-mem.c +++ b/bins/unzzipcat-mem.c @@ -116,7 +116,7 @@ static int unzzip_cat (int argc, char ** argv, int extract) FILE* out = stdout; if (extract) out = create_fopen(name, "w", 1); if (! out) { - done = EXIT_ERRORS; + if (errno != EISDIR) done = EXIT_ERRORS; continue; } unzzip_mem_disk_cat_file (disk, name, out); @@ -148,7 +148,7 @@ static int unzzip_cat (int argc, char ** argv, int extract) FILE* out = stdout; if (extract) out = create_fopen(name, "w", 1); if (! out) { - done = EXIT_ERRORS; + if (errno != EISDIR) done = EXIT_ERRORS; continue; } unzzip_mem_disk_cat_file (disk, name, out); diff --git a/bins/unzzipcat-mix.c b/bins/unzzipcat-mix.c index cba85c4..1a6cd4c 100644 --- a/bins/unzzipcat-mix.c +++ b/bins/unzzipcat-mix.c @@ -126,7 +126,7 @@ static int unzzip_cat (int argc, char ** argv, int extract) FILE* out = stdout; if (extract) out = create_fopen(name, "w", 1); if (! out) { - done = EXIT_ERRORS; + if (errno != EISDIR) done = EXIT_ERRORS; continue; } unzzip_cat_file (disk, name, out); @@ -157,7 +157,7 @@ static int unzzip_cat (int argc, char ** argv, int extract) strcpy(mix_name + zip_name_len + 1, name); if (extract) out = create_fopen(name, "w", 1); if (! out) { - done = EXIT_ERRORS; + if (errno != EISDIR) done = EXIT_ERRORS; continue; } fprintf(stderr, "%s %s -> %s\n", zip_name, name, mix_name); -- 2.40.0