OpenSDE Packages Database (without history before r20070)
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.

62 lines
1.6 KiB

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