From: Guido Draheim Date: Mon, 5 Feb 2018 14:26:22 +0000 (+0100) Subject: ignore dir-entries errors elsewhere as well X-Git-Tag: v0.13.68~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=09fa569c7bcfd26c9cf3cb7bb04a1084e745042b;p=zziplib ignore dir-entries errors elsewhere as well --- 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);