Path: blob/main/archivers/arc/files/patch-arcrun.c
18157 views
--- arcrun.c.orig 2013-06-27 02:00:19 UTC1+++ arcrun.c2@@ -96,7 +96,7 @@ runfile(hdr, num, arg) /* run a file */3strcpy(sys, buf);45else {6- if (warn) {7+ if (arcwarn) {8printf("File %s is not a .BAS, .BAT, .COM, or .EXE\n",9hdr->name);10nerrs++;11@@ -110,7 +110,7 @@ runfile(hdr, num, arg) /* run a file */12&& strcmp(i, ".TTP")13&& strcmp(i, ".TOS"))14{15- if (warn) {16+ if (arcwarn) {17printf("File %s is not a .PRG, .TOS, or .TTP\n",18hdr->name);19nerrs++;20@@ -120,7 +120,7 @@ runfile(hdr, num, arg) /* run a file */21}22#endif2324- if (warn)25+ if (arcwarn)26if ((tmp = fopen(buf, "r")))27arcdie("Temporary file %s already exists", buf);28if (!(tmp = tmpopen(buf)))29@@ -144,7 +144,7 @@ runfile(hdr, num, arg) /* run a file */30if (system(buf)) /* try to invoke it */31arcdie("Execution failed for %s", buf);32#endif33- if (unlink(buf) && warn) {34+ if (unlink(buf) && arcwarn) {35printf("Cannot unsave temporary file %s\n", buf);36nerrs++;37}383940