summaryrefslogtreecommitdiff
path: root/archivers/arc/files/patch-arcadd.c
diff options
context:
space:
mode:
authorAdam Weinberger <adamw@FreeBSD.org>2014-07-27 15:27:04 +0000
committerAdam Weinberger <adamw@FreeBSD.org>2014-07-27 15:27:04 +0000
commite2aedd8abd3ca3fb06e9a7ca9ccb01278ff31386 (patch)
tree6f70fd9588858cfa314056ee54c090493d3fcc75 /archivers/arc/files/patch-arcadd.c
parentdevel/py-nose: Update to 1.3.3, Fix tests (diff)
Start cleaning up some of the uselessly ambigious patches named
patch-xy, and giving them proper names.
Notes
Notes: svn path=/head/; revision=363075
Diffstat (limited to 'archivers/arc/files/patch-arcadd.c')
-rw-r--r--archivers/arc/files/patch-arcadd.c47
1 files changed, 47 insertions, 0 deletions
diff --git a/archivers/arc/files/patch-arcadd.c b/archivers/arc/files/patch-arcadd.c
new file mode 100644
index 000000000000..8a5597cfc6f5
--- /dev/null
+++ b/archivers/arc/files/patch-arcadd.c
@@ -0,0 +1,47 @@
+--- ./arcadd.c.orig Tue Aug 10 23:03:24 1999
++++ ./arcadd.c Tue Aug 10 23:01:55 1999
+@@ -119,7 +119,7 @@
+ }
+ #endif
+ }
+- if (notemp && warn)
++ if (notemp && arcwarn)
+ printf("No files match: %s\n", arg[n]);
+ }
+
+@@ -133,7 +133,7 @@
+ free(path);
+ free(name);
+ }
+- if (nowork && warn)
++ if (nowork && arcwarn)
+ printf("No files were added.\n");
+ }
+
+@@ -227,7 +227,7 @@
+ if (move) { /* if this was a move */
+ for (n = 0; n < nfiles; n++) { /* then delete each file
+ * added */
+- if (unlink(path[n]) && warn) {
++ if (unlink(path[n]) && arcwarn) {
+ printf("Cannot unsave %s\n", path[n]);
+ nerrs++;
+ }
+@@ -259,7 +259,7 @@
+ if (!f)
+ #endif
+ {
+- if (warn) {
++ if (arcwarn) {
+ printf("Cannot read file: %s\n", path);
+ nerrs++;
+ }
+@@ -267,7 +267,7 @@
+ }
+ #if !DOS
+ if (strlen(name) >= FNLEN) {
+- if (warn) {
++ if (arcwarn) {
+ char buf[STRLEN];
+ printf("WARNING: File %s name too long!\n", name);
+ name[FNLEN-1]='\0';