home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / altsrcs / 2 / 2136 < prev    next >
Internet Message Format  |  1990-12-28  |  5KB

  1. From: dfs@doe.carleton.ca (David F. Skoll)
  2. Newsgroups: alt.sources
  3. Subject: REMIND 2.2 Patch.01
  4. Message-ID: <dfs.659288798@scotty>
  5. Date: 22 Nov 90 15:46:38 GMT
  6.  
  7. This is Patch 1 for remind version 2.2.  It fixes a serious bug; you
  8. are strongly recommended to apply it.
  9.  
  10. Certain date specifications could cause remind to enter an infinite
  11. loop; this patch fixes it.  It also corrects a couple of typos in
  12. the man page.
  13.  
  14. Extract the file patch.01 from the shar into the remind source directory;
  15. type "patch < patch.01" and then type make.
  16.  
  17. Thanks go to Dave Buck {aeras,amdahl,ardent,daver,netcom,sun,zygot}!dlb!dave
  18. for this bug report and fix.
  19. --
  20. David Skoll
  21.  
  22. ----------------- CUT HERE ------------------------
  23. #!/bin/sh
  24. # This is Remind-2.2-patch.01, a shell archive (shar 3.32)
  25. # made 11/22/1990 15:44 UTC by dfs@scotty
  26. # Source directory /enterprise/navigation/dfs/work/.rem/work
  27. #
  28. # existing files will NOT be overwritten
  29. #
  30. # This shar contains:
  31. # length  mode       name
  32. # ------ ---------- ------------------------------------------
  33. #   2967 -rw------- patch.01
  34. #
  35. if touch 2>&1 | fgrep 'amc' > /dev/null
  36.  then TOUCH=touch
  37.  else TOUCH=true
  38. fi
  39. # ============= patch.01 ==============
  40. if test X"$1" != X"-c" -a -f 'patch.01'; then
  41.     echo "File already exists: skipping 'patch.01'"
  42. else
  43. echo "x - extracting patch.01 (Text)"
  44. sed 's/^X//' << 'SHAR_EOF' > patch.01 &&
  45. XPatch 01 - 22 November 1991
  46. XFixes bug in nextdate.c which causes infinite looping.  Also
  47. Xfixes some typos in the man pages.
  48. X
  49. XFix for nextdate.c courtesy Dave Buck, D.L. Buck and Associates, Inc.
  50. XSan Jose, California.  Thanks Dave!
  51. X
  52. XFirst patch:  UPDATE THE PATCHLEVEL
  53. X*** ../work-backup/init.c    Thu Nov 22 10:17:36 1990
  54. X--- init.c    Thu Nov 22 10:21:10 1990
  55. X***************
  56. X*** 7,13 ****
  57. X  #include "globals.h"
  58. X  #include "protos.h"
  59. X  
  60. X! #define PATCHLEVEL 0
  61. X  
  62. X  static char DPMsg[] = "Debug and Purge options conflict - Purge chosen.\n";
  63. X  static char DPCMsg[] = "Calendar overrides Debug and Purge options.\n";
  64. X--- 7,13 ----
  65. X  #include "globals.h"
  66. X  #include "protos.h"
  67. X  
  68. X! #define PATCHLEVEL 1
  69. X  
  70. X  static char DPMsg[] = "Debug and Purge options conflict - Purge chosen.\n";
  71. X  static char DPCMsg[] = "Calendar overrides Debug and Purge options.\n";
  72. X
  73. XSecond patch: FIX NEXTDATE.C
  74. X*** ../work-backup/nextdate.c    Thu Nov 22 10:17:37 1990
  75. X--- nextdate.c    Thu Nov 22 10:18:24 1990
  76. X***************
  77. X*** 212,218 ****
  78. X       jul2 = Julian(d, m, y);
  79. X  
  80. X       /* Blip up to next valid year */
  81. X!      while (conday > DaysInMonth(m, y)) y++;
  82. X  
  83. X       /* Try this year */
  84. X       jul = Julian(conday, conmon, y);
  85. X--- 212,218 ----
  86. X       jul2 = Julian(d, m, y);
  87. X  
  88. X       /* Blip up to next valid year */
  89. X!      while (conday > DaysInMonth(conmon, y)) y++;
  90. X  
  91. X       /* Try this year */
  92. X       jul = Julian(conday, conmon, y);
  93. X
  94. XThird patch: FIX THE MAN PAGE.
  95. X*** ../work-backup/remind.1    Thu Nov 22 10:17:38 1990
  96. X--- remind.1    Thu Nov 22 10:20:41 1990
  97. X***************
  98. X*** 228,239 ****
  99. X  consists of zero to four parts.  These parts are
  100. X  .I day
  101. X  (day of month),
  102. X- 
  103. X- 
  104. X- 
  105. X- 
  106. X- 
  107. X- 
  108. X  .I month
  109. X  (month name),
  110. X  .I year
  111. X--- 228,233 ----
  112. X***************
  113. X*** 605,611 ****
  114. X  keyword, it checks the last-access date of the reminder file.  If it is
  115. X  equal to the current date,
  116. X  .B remind
  117. X! assumes that the reminder file has already been run once, and ignored the
  118. X  reminder.  If you start
  119. X  .B remind
  120. X  with the
  121. X--- 599,605 ----
  122. X  keyword, it checks the last-access date of the reminder file.  If it is
  123. X  equal to the current date,
  124. X  .B remind
  125. X! assumes that the reminder file has already been run once, and ignores the
  126. X  reminder.  If you start
  127. X  .B remind
  128. X  with the
  129. X***************
  130. X*** 1278,1289 ****
  131. X  and the body of the message will be blank.
  132. X  .PP
  133. X  .nf
  134. X!     REM AT 17:00 RUN echo "5:00pm - GO HOME!" > /tmp/rem.$$; \\
  135. X!     xterm -g 80x25+0+0 -e view /tmp/rem.$$; rm -f /tmp/rem.$$
  136. X  .fi
  137. X  .PP
  138. X! This reminder will pop up an xterm at 5:00pm every day.  The xterm
  139. X! will execute view (read-only "vi") on a file which reads "5:00pm - GO HOME!"
  140. X  .PP
  141. X  .nf
  142. X      remind -c12 /dev/null 1 Jan 1991
  143. X--- 1272,1282 ----
  144. X  and the body of the message will be blank.
  145. X  .PP
  146. X  .nf
  147. X!     REM AT 17:00 RUN echo "5:00pm - GO HOME!" | xless -g +0+0
  148. X  .fi
  149. X  .PP
  150. X! This reminder will pop up an xless window at 5:00pm every day.  The xless
  151. X! window will contain the line "5:00pm - GO HOME!"
  152. X  .PP
  153. X  .nf
  154. X      remind -c12 /dev/null 1 Jan 1991
  155. SHAR_EOF
  156. $TOUCH -am 1122104590 patch.01 &&
  157. chmod 0600 patch.01 ||
  158. echo "restore of patch.01 failed"
  159. set `wc -c patch.01`;Wc_c=$1
  160. if test "$Wc_c" != "2967"; then
  161.     echo original size 2967, current size $Wc_c
  162. fi
  163. fi
  164. exit 0
  165.