]> granicus.if.org Git - zziplib/commitdiff
ignore dir-entries errors elsewhere as well
authorGuido Draheim <guidod@gmx.de>
Mon, 5 Feb 2018 14:26:22 +0000 (15:26 +0100)
committerGuido Draheim <guidod@gmx.de>
Mon, 5 Feb 2018 14:26:22 +0000 (15:26 +0100)
bins/unzzipcat-big.c
bins/unzzipcat-mem.c
bins/unzzipcat-mix.c

index 727116e07f3c0e87bef7962e2c38d9496ec45c9f..0efd878098aa588e9f6480d919ed1b86b8fc040f 100644 (file)
@@ -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);
index 8e4cd05ac6276acf53ed6f77238bfda1f44dd34e..b81c703cc438207eced623dc020cd37317dd36a4 100644 (file)
@@ -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);
index cba85c4cb3d3c500d0681fd9a313b3b9fa171c59..1a6cd4c940af12d4052d4eb4d9af677100041436 100644 (file)
@@ -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);