home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / misc / volume9 / siotools / patch01 < prev    next >
Encoding:
Text File  |  1989-12-07  |  3.2 KB  |  122 lines

  1. Newsgroups: comp.sources.misc
  2. subject: v09i056: siotools v09i044 patch 1
  3. from: allbery@uunet.UU.NET (Brandon S. Allbery - comp.sources.misc)
  4. Reply-To: wht%n4hgf@gatech.edu (Warren Tucker)
  5.  
  6. Posting-number: Volume 9, Issue 56
  7. Submitted-by: wht%n4hgf@gatech.edu (Warren Tucker)
  8. Archive-name: siotools/patch01
  9.  
  10. #!/bin/sh
  11. # This is siotools.p1, a shell archive (shar 3.04)
  12. # made 12/05/1989 21:00 UTC by gatech!kd4nc!n4hgf!wht (wht%n4hgf@gatech.edu)
  13. # Source directory /u4/src/uusnap/x
  14. #
  15. # siotools v09i044/v09i45 Patch 1
  16. # This patch fixes a bug where uusnap is running and a new UUCP
  17. # connection is established, the display is improperly updated.
  18. #
  19. # Just unshar in the siotools source directory and type 'sh PATCH.1'
  20. #
  21. # This shar contains:
  22. #    PATCH.1
  23. #
  24. touch 2>&1 | fgrep '[-amc]' > /tmp/s3_touch$$
  25. if [ -s /tmp/s3_touch$$ ]
  26. then
  27.     TOUCH=can
  28. else
  29.     TOUCH=cannot
  30. fi
  31. rm -f /tmp/s3_touch$$
  32. echo "x - extracting PATCH.1 (Text)"
  33. sed 's/^X//' << 'SHAR_EOF' > PATCH.1 &&
  34. X:
  35. X#-------------------------------------------------------------------
  36. X# siotools v09i044/v09i45 Patch 1
  37. X# This patch fixes a bug where uusnap is running and a new UUCP
  38. X# connection is established, the display is improperly updated.
  39. X#-------------------------------------------------------------------
  40. X#+:EDITS:
  41. X#:12-05-1989-05:58-wht-creation
  42. X
  43. Xsed -e 's/^P//' << DIFF_EOF | patch
  44. XP*** uusnap160.c    Mon Dec  4 18:28:00 1989
  45. XP--- uusnap.c    Tue Dec  5 05:48:15 1989
  46. XP***************
  47. XP*** 1,5
  48. XP! /* CHK=0xB1F9 */
  49. XP! char *revision = "1.60";
  50. XP  /*+-------------------------------------------------------------------------
  51. XP      uusnap.c - display UUCP communications status for HDB systems
  52. XP      ...gatech!kd4nc!n4hgf!wht
  53. XP
  54. XP--- 1,5 -----
  55. XP! /* CHK=0x5B7C */
  56. XP! char *revision = "1.61";
  57. XP  /*+-------------------------------------------------------------------------
  58. XP      uusnap.c - display UUCP communications status for HDB systems
  59. XP      ...gatech!kd4nc!n4hgf!wht
  60. XP***************
  61. XP*** 508,513
  62. XP          status = SS_DEVICE_FAILED;
  63. XP  
  64. XP      move(y,0);
  65. XP      utoda(s32,2,sysnum);
  66. XP      addstr(s32);
  67. XP      addch(' ');
  68. XP
  69. XP--- 508,514 -----
  70. XP          status = SS_DEVICE_FAILED;
  71. XP  
  72. XP      move(y,0);
  73. XP+     clrtoeol();
  74. XP      utoda(s32,2,sysnum);
  75. XP      addstr(s32);
  76. XP      addch(' ');
  77. XP***************
  78. XP*** 902,907
  79. XP              display_status(systems,sysname,display_delta_y + FIRSTSYS_Y,linebuf);
  80. XP              display_delta_y++;
  81. XP          }
  82. XP          display_delta_y++;
  83. XP          move(display_delta_y + FIRSTSYS_Y,0);
  84. XP          addstr("UUCP connections active: ");
  85. XP
  86. XP--- 903,910 -----
  87. XP              display_status(systems,sysname,display_delta_y + FIRSTSYS_Y,linebuf);
  88. XP              display_delta_y++;
  89. XP          }
  90. XP+         move(display_delta_y + FIRSTSYS_Y,0);
  91. XP+         clrtoeol();
  92. XP          display_delta_y++;
  93. XP          move(display_delta_y + FIRSTSYS_Y,0);
  94. XP          addstr("UUCP connections active: ");
  95. XP***************
  96. XP*** 940,945
  97. XP              switch(cmd &= 0x7f)
  98. XP              {
  99. XP                  case 'q':
  100. XP                      bye(0);
  101. XP                  case 'd':
  102. XP                      detail();
  103. XP
  104. XP--- 943,949 -----
  105. XP              switch(cmd &= 0x7f)
  106. XP              {
  107. XP                  case 'q':
  108. XP+                 case 0x1B:
  109. XP                      bye(0);
  110. XP                  case 'd':
  111. XP                      detail();
  112. XDIFF_EOF
  113. Xexit 0
  114. SHAR_EOF
  115. chmod 0755 PATCH.1 || echo "restore of PATCH.1 fails"
  116. if [ $TOUCH = can ]
  117. then
  118.     touch -m 1205155889 PATCH.1
  119. fi
  120. exit 0
  121.  
  122.