freebsd-ports/archivers/arc/files/patch-al
Andrey A. Chernov 5f4c1c7c3c Upgrade to 5.21o
2006-05-26 23:53:37 +00:00

38 lines
989 B
Text

--- arcrun.c.orig Wed Oct 12 19:22:18 2005
+++ arcrun.c Sat May 27 03:47:30 2006
@@ -98,7 +98,7 @@
strcpy(sys, buf);
else {
- if (warn) {
+ if (arcwarn) {
printf("File %s is not a .BAS, .BAT, .COM, or .EXE\n",
hdr->name);
nerrs++;
@@ -112,7 +112,7 @@
&& strcmp(i, ".TTP")
&& strcmp(i, ".TOS"))
{
- if (warn) {
+ if (arcwarn) {
printf("File %s is not a .PRG, .TOS, or .TTP\n",
hdr->name);
nerrs++;
@@ -122,7 +122,7 @@
}
#endif
- if (warn)
+ if (arcwarn)
if ((tmp = fopen(buf, "r")))
arcdie("Temporary file %s already exists", buf);
if (!(tmp = tmpopen(buf)))
@@ -146,7 +146,7 @@
if (system(buf)) /* try to invoke it */
arcdie("Execution failed for %s", buf);
#endif
- if (unlink(buf) && warn) {
+ if (unlink(buf) && arcwarn) {
printf("Cannot unsave temporary file %s\n", buf);
nerrs++;
}