Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports-gnome
Path: blob/main/archivers/arc/files/patch-arcadd.c
16149 views
1
--- arcadd.c.orig 2010-08-07 13:06:42 UTC
2
+++ arcadd.c
3
@@ -119,7 +119,7 @@ int fresh; /* true if fresh
4
}
5
#endif
6
}
7
- if (notemp && warn)
8
+ if (notemp && arcwarn)
9
printf("No files match: %s\n", arg[n]);
10
}
11
12
@@ -133,7 +133,7 @@ int fresh; /* true if fresh
13
free(path);
14
free(name);
15
}
16
- if (nowork && warn)
17
+ if (nowork && arcwarn)
18
printf("No files were added.\n");
19
}
20
21
@@ -227,7 +227,7 @@ addbunch(nfiles, path, name, move, updat
22
if (move) { /* if this was a move */
23
for (n = 0; n < nfiles; n++) { /* then delete each file
24
* added */
25
- if (unlink(path[n]) && warn) {
26
+ if (unlink(path[n]) && arcwarn) {
27
printf("Cannot unsave %s\n", path[n]);
28
nerrs++;
29
}
30
@@ -259,7 +259,7 @@ addfile(path, name, update, fresh) /* ad
31
if (!f)
32
#endif
33
{
34
- if (warn) {
35
+ if (arcwarn) {
36
printf("Cannot read file: %s\n", path);
37
nerrs++;
38
}
39
@@ -267,7 +267,7 @@ addfile(path, name, update, fresh) /* ad
40
}
41
#if !DOS
42
if (strlen(name) >= FNLEN) {
43
- if (warn) {
44
+ if (arcwarn) {
45
char buf[STRLEN];
46
printf("WARNING: File %s name too long!\n", name);
47
name[FNLEN-1]='\0';
48
49