SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
47
archivers/arc/patches/patch-arcadd_c
Normal file
47
archivers/arc/patches/patch-arcadd_c
Normal file
|
@ -0,0 +1,47 @@
|
|||
--- arcadd.c.orig Sat Aug 7 10:06:42 2010
|
||||
+++ arcadd.c Thu May 19 23:35:46 2011
|
||||
@@ -119,7 +119,7 @@ int fresh; /* true if freshening */
|
||||
}
|
||||
#endif
|
||||
}
|
||||
- if (notemp && warn)
|
||||
+ if (notemp && arcwarn)
|
||||
printf("No files match: %s\n", arg[n]);
|
||||
}
|
||||
|
||||
@@ -133,7 +133,7 @@ int fresh; /* true if freshening */
|
||||
free(path);
|
||||
free(name);
|
||||
}
|
||||
- if (nowork && warn)
|
||||
+ if (nowork && arcwarn)
|
||||
printf("No files were added.\n");
|
||||
}
|
||||
|
||||
@@ -227,7 +227,7 @@ addbunch(nfiles, path, name, move, update, fresh) /* a
|
||||
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 @@ addfile(path, name, update, fresh) /* add named file t
|
||||
if (!f)
|
||||
#endif
|
||||
{
|
||||
- if (warn) {
|
||||
+ if (arcwarn) {
|
||||
printf("Cannot read file: %s\n", path);
|
||||
nerrs++;
|
||||
}
|
||||
@@ -267,7 +267,7 @@ addfile(path, name, update, fresh) /* add named file t
|
||||
}
|
||||
#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';
|
Loading…
Add table
Add a link
Reference in a new issue