patch-arcadd_c 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. $OpenBSD: patch-arcadd_c,v 1.3 2011/05/23 13:42:10 gsoares Exp $
  2. --- arcadd.c.orig Sat Aug 7 10:06:42 2010
  3. +++ arcadd.c Thu May 19 23:35:46 2011
  4. @@ -119,7 +119,7 @@ int fresh; /* true if freshening */
  5. }
  6. #endif
  7. }
  8. - if (notemp && warn)
  9. + if (notemp && arcwarn)
  10. printf("No files match: %s\n", arg[n]);
  11. }
  12. @@ -133,7 +133,7 @@ int fresh; /* true if freshening */
  13. free(path);
  14. free(name);
  15. }
  16. - if (nowork && warn)
  17. + if (nowork && arcwarn)
  18. printf("No files were added.\n");
  19. }
  20. @@ -227,7 +227,7 @@ addbunch(nfiles, path, name, move, update, fresh) /* a
  21. if (move) { /* if this was a move */
  22. for (n = 0; n < nfiles; n++) { /* then delete each file
  23. * added */
  24. - if (unlink(path[n]) && warn) {
  25. + if (unlink(path[n]) && arcwarn) {
  26. printf("Cannot unsave %s\n", path[n]);
  27. nerrs++;
  28. }
  29. @@ -259,7 +259,7 @@ addfile(path, name, update, fresh) /* add named file t
  30. if (!f)
  31. #endif
  32. {
  33. - if (warn) {
  34. + if (arcwarn) {
  35. printf("Cannot read file: %s\n", path);
  36. nerrs++;
  37. }
  38. @@ -267,7 +267,7 @@ addfile(path, name, update, fresh) /* add named file t
  39. }
  40. #if !DOS
  41. if (strlen(name) >= FNLEN) {
  42. - if (warn) {
  43. + if (arcwarn) {
  44. char buf[STRLEN];
  45. printf("WARNING: File %s name too long!\n", name);
  46. name[FNLEN-1]='\0';