mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

64 lines
1.8 KiB

  1. # --- ROCK-COPYRIGHT-NOTE-BEGIN ---
  2. #
  3. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  4. # Please add additional copyright information _after_ the line containing
  5. # the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
  6. # the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
  7. #
  8. # ROCK Linux: rock-src/package/tsa/metamail/20_mm-2.7-uudecode.patch
  9. # ROCK Linux is Copyright (C) 1998 - 2006 Clifford Wolf
  10. #
  11. # This patch file is dual-licensed. It is available under the license the
  12. # patched project is licensed under, as long as it is an OpenSource license
  13. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  14. # of the GNU General Public License as published by the Free Software
  15. # Foundation; either version 2 of the License, or (at your option) any later
  16. # version.
  17. #
  18. # --- ROCK-COPYRIGHT-NOTE-END ---
  19. --- mm2.7/src/bin/sun-audio-file.ewt Fri Oct 24 09:41:11 1997
  20. +++ mm2.7/src/bin/sun-audio-file Fri Oct 24 09:52:05 1997
  21. @@ -6,7 +6,13 @@
  22. set METAMAIL_TMPDIR=/tmp
  23. endif
  24. -cd ${METAMAIL_TMPDIR}
  25. -uudecode < $1
  26. -audiotool audio-file
  27. -rm -f audio-file $1
  28. +set fn=`mktemp $METAMAIL_TMPDIR/audio.XXXXXX`
  29. +test -n "$fn"
  30. +if $? then
  31. + exit 1
  32. +endif
  33. +
  34. +uudecode -o $fn < $1
  35. +
  36. +audiotool $fn
  37. +rm -f $fn $1
  38. --- mm2.7/src/bin/sun-message.csh.ewt Fri Oct 24 09:44:07 1997
  39. +++ mm2.7/src/bin/sun-message.csh Fri Oct 24 09:52:30 1997
  40. @@ -9,7 +9,13 @@
  41. cd /tmp/decode.$$
  42. if ($2 == "uuencode") then
  43. - uudecode $1
  44. + set fn=`mktemp $METAMAIL_TMPDIR/audio.XXXXXX`
  45. + test -n "$fn"
  46. + if $? then
  47. + exit 1
  48. + endif
  49. +
  50. + uudecode -o $fn $1
  51. echo "The following file was uudecoded:"
  52. echo ""
  53. @@ -17,7 +23,6 @@
  54. set defans = "1"
  55. while (1)
  56. ls -l
  57. - set fn = *
  58. echo ""
  59. echo "Please choose one:"