home *** CD-ROM | disk | FTP | other *** search
/ Fish 'n' More 2 / fishmore-publicdomainlibraryvol.ii1991xetec.iso / disks / disk445.lzh / Tar / patch01 / src / part01 < prev    next >
Text File  |  1991-01-24  |  4KB  |  128 lines

  1. #! rnews 4012
  2. Path: van-bc!zaphod.mps.ohio-state.edu!samsung!xanth!cs.odu.edu!Amiga-Request
  3. From: Amiga-Request@cs.odu.edu (Amiga Sources/Binaries Moderator)
  4. Newsgroups: comp.sources.amiga
  5. Subject: v90i171: tar patch 01 - patch to tar, tape archive utility, Part01/01
  6. Message-ID: <12694@xanth.cs.odu.edu>
  7. Date: 3 Jun 90 21:36:30 GMT
  8. Sender: tadguy@cs.odu.edu
  9. Reply-To: hue@netcom.uucp (Jonathan Hue)
  10. Lines: 113
  11. Approved: tadguy@cs.odu.edu (Tad Guy)
  12. X-Mail-Submissions-To: Amiga@cs.odu.edu
  13. X-Post-Discussions-To: comp.sys.amiga
  14.  
  15. Submitted-by: hue@netcom.uucp (Jonathan Hue)
  16. Posting-number: Volume 90, Issue 171
  17. Archive-name: unix/tar/patch01/part01
  18.  
  19. [ a patch to the executable is also included.  ...tad ]
  20.  
  21. I found a serious bug in the tar program that was posted to
  22. comp.sources.amiga and comp.binaries.amiga (my fault, I ported it, I
  23. introduced the bug).  Tar will sometimes guru when extracting tar files
  24. created on other machines.  If anyone has found any other bugs, please
  25. report them to me.  When all the bugs that need fixing are found and
  26. fixed I will release a new version.
  27.  
  28. #!/bin/sh
  29. # This is a shell archive.  Remove anything before this line, then unpack
  30. # it by saving it into a file and typing "sh file".  To overwrite existing
  31. # files, type "sh file -c".  You can also feed this as standard input via
  32. # unshar, or by typing "sh <file", e.g..  If this archive is complete, you
  33. # will see the following message at the end:
  34. #        "End of archive 1 (of 1)."
  35. # Contents:  bin.patch1 src.patch1
  36. # Wrapped by tadguy@xanth on Sun Jun  3 17:36:19 1990
  37. PATH=/bin:/usr/bin:/usr/ucb ; export PATH
  38. if test -f 'bin.patch1' -a "${1}" != "-c" ; then 
  39.   echo shar: Will not clobber existing file \"'bin.patch1'\"
  40. else
  41. echo shar: Extracting \"'bin.patch1'\" \(655 characters\)
  42. sed "s/^X//" >'bin.patch1' <<'END_OF_FILE'
  43. XFor the truly adventurous who don't have Lattice C, here is a
  44. Xbinary patch you can apply with NewZap.  Go to sector 51 and type
  45. Xin the replacement.  Here are the diffs, there are 16 bytes, address on
  46. Xthe left, old data in the middle, new data on the right:
  47. X
  48. X0x6438: 0x20 0x48
  49. X0x643a: 0x0 0xff
  50. X0x643b: 0xc 0xf4
  51. X0x643c: 0x2f 0x20
  52. X0x643d: 0x28 0x6d
  53. X0x643f: 0x4 0xc
  54. X0x6440: 0x61 0x2f
  55. X0x6441: 0x0 0x28
  56. X0x6442: 0x2 0x0
  57. X0x6443: 0x14 0x4
  58. X0x6444: 0x48 0x61
  59. X0x6445: 0x6d 0x0
  60. X0x6446: 0xff 0x2
  61. X0x6447: 0xf4 0x10
  62. X0x6448: 0x2f 0x2e
  63. X0x6449: 0x0 0x80
  64. X
  65. XI tried it, it produces a binary identical to the fixed version and it
  66. Xextracts foreign tar files properly.
  67. X
  68. X-Jonathan
  69. END_OF_FILE
  70. if test 655 -ne `wc -c <'bin.patch1'`; then
  71.     echo shar: \"'bin.patch1'\" unpacked with wrong size!
  72. fi
  73. # end of 'bin.patch1'
  74. fi
  75. if test -f 'src.patch1' -a "${1}" != "-c" ; then 
  76.   echo shar: Will not clobber existing file \"'src.patch1'\"
  77. else
  78. echo shar: Extracting \"'src.patch1'\" \(426 characters\)
  79. sed "s/^X//" >'src.patch1' <<'END_OF_FILE'
  80. X*** t:,RDFt1A30598    Mon Apr 09 16:18:54 1990
  81. X--- utime.c    Mon Apr 09 16:00:20 1990
  82. X***************
  83. X*** 35,42 ****
  84. X  {
  85. X      struct DateStamp dateStamp;
  86. X  
  87. X!     return(utime_from_stamp(filename, seconds2AmiTime(unixtime[1]),
  88. X!                 &dateStamp));
  89. X  }
  90. X  
  91. X  int
  92. X--- 35,42 ----
  93. X  {
  94. X      struct DateStamp dateStamp;
  95. X  
  96. X!     return(utime_from_stamp(filename, seconds2AmiTime(unixtime[1],
  97. X!                               &dateStamp)));
  98. X  }
  99. X  
  100. X  int
  101. END_OF_FILE
  102. if test 426 -ne `wc -c <'src.patch1'`; then
  103.     echo shar: \"'src.patch1'\" unpacked with wrong size!
  104. fi
  105. # end of 'src.patch1'
  106. fi
  107. echo shar: End of archive 1 \(of 1\).
  108. cp /dev/null ark1isdone
  109. MISSING=""
  110. for I in 1 ; do
  111.     if test ! -f ark${I}isdone ; then
  112.     MISSING="${MISSING} ${I}"
  113.     fi
  114. done
  115. if test "${MISSING}" = "" ; then
  116.     echo You have the archive.
  117.     rm -f ark[1-9]isdone
  118. else
  119.     echo You still need to unpack the following archives:
  120.     echo "        " ${MISSING}
  121. fi
  122. ##  End of shell archive.
  123. exit 0
  124. -- 
  125. Mail submissions (sources or binaries) to <amiga@cs.odu.edu>.
  126. Mail comments to the moderator at <amiga-request@cs.odu.edu>.
  127. Post requests for sources, and general discussion to comp.sys.amiga.
  128.