Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports-gnome
Path: blob/main/archivers/arc/files/patch-arcrun.c
16149 views
1
--- arcrun.c.orig 2010-08-07 13:06:42 UTC
2
+++ arcrun.c
3
@@ -98,7 +98,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
@@ -112,7 +112,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
@@ -122,7 +122,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
@@ -146,7 +146,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