Path: blob/main/archivers/arc/files/patch-arcrun.c
16149 views
--- arcrun.c.orig 2010-08-07 13:06:42 UTC1+++ arcrun.c2@@ -98,7 +98,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@@ -112,7 +112,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@@ -122,7 +122,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@@ -146,7 +146,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