Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports-kde
Path: blob/main/archivers/arc/files/patch-arcrun.c
16461 views
1
--- arcrun.c.orig 2013-06-27 02:00:19 UTC
2
+++ arcrun.c
3
@@ -96,7 +96,7 @@ runfile(hdr, num, arg) /* run a file */
4
strcpy(sys, buf);
5
6
else {
7
- if (warn) {
8
+ if (arcwarn) {
9
printf("File %s is not a .BAS, .BAT, .COM, or .EXE\n",
10
hdr->name);
11
nerrs++;
12
@@ -110,7 +110,7 @@ runfile(hdr, num, arg) /* run a file */
13
&& strcmp(i, ".TTP")
14
&& strcmp(i, ".TOS"))
15
{
16
- if (warn) {
17
+ if (arcwarn) {
18
printf("File %s is not a .PRG, .TOS, or .TTP\n",
19
hdr->name);
20
nerrs++;
21
@@ -120,7 +120,7 @@ runfile(hdr, num, arg) /* run a file */
22
}
23
#endif
24
25
- if (warn)
26
+ if (arcwarn)
27
if ((tmp = fopen(buf, "r")))
28
arcdie("Temporary file %s already exists", buf);
29
if (!(tmp = tmpopen(buf)))
30
@@ -144,7 +144,7 @@ runfile(hdr, num, arg) /* run a file */
31
if (system(buf)) /* try to invoke it */
32
arcdie("Execution failed for %s", buf);
33
#endif
34
- if (unlink(buf) && warn) {
35
+ if (unlink(buf) && arcwarn) {
36
printf("Cannot unsave temporary file %s\n", buf);
37
nerrs++;
38
}
39
40