openbsd-ports/archivers/arc/patches/patch-arcadd_c

49 lines
1.2 KiB
Plaintext
Raw Normal View History

$OpenBSD: patch-arcadd_c,v 1.2 2005/10/13 18:05:20 naddy Exp $
--- arcadd.c.orig Tue Oct 11 23:46:01 2005
+++ arcadd.c Tue Oct 11 23:46:25 2005
@@ -119,7 +119,7 @@ int fresh; /* true if fresh
1999-08-12 09:40:51 -04:00
}
#endif
}
- if (notemp && warn)
+ if (notemp && arcwarn)
printf("No files match: %s\n", arg[n]);
}
@@ -133,7 +133,7 @@ int fresh; /* true if fresh
1999-08-12 09:40:51 -04:00
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, updat
1999-08-12 09:40:51 -04:00
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) /* ad
1999-08-12 09:40:51 -04:00
if (!f)
#endif
{
- if (warn) {
+ if (arcwarn) {
printf("Cannot read file: %s\n", path);
nerrs++;
}
@@ -267,7 +267,7 @@ addfile(path, name, update, fresh) /* ad
1999-08-12 09:40:51 -04:00
}
#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';