Sophie

Sophie

distrib > Mandriva > 2010.0 > x86_64 > by-pkgid > 1fec5bad01a4f85042e019065a3fb665 > files > 14

metamail-2.7-16mdv2009.0.src.rpm

--- mm2.7/src/bin/sun-audio-file.ewt	Fri Oct 24 09:41:11 1997
+++ mm2.7/src/bin/sun-audio-file	Fri Oct 24 09:52:05 1997
@@ -6,7 +6,13 @@
     set METAMAIL_TMPDIR=/tmp
 endif
 
-cd ${METAMAIL_TMPDIR}
-uudecode < $1
-audiotool audio-file
-rm -f audio-file $1
+set fn=`mktemp $METAMAIL_TMPDIR/audio.XXXXXX`
+test -n "$fn"
+if $? then
+	exit 1
+endif
+
+uudecode -o $fn < $1
+
+audiotool $fn
+rm -f $fn $1
--- mm2.7/src/bin/sun-message.csh.ewt	Fri Oct 24 09:44:07 1997
+++ mm2.7/src/bin/sun-message.csh	Fri Oct 24 09:52:30 1997
@@ -9,7 +9,13 @@
 cd /tmp/decode.$$
 
 if ($2 == "uuencode") then
-    uudecode $1
+    set fn=`mktemp $METAMAIL_TMPDIR/audio.XXXXXX`
+    test -n "$fn"
+    if $? then
+	    exit 1
+    endif
+
+    uudecode -o $fn $1
 
     echo "The following file was uudecoded:"
     echo ""
@@ -17,7 +23,6 @@
     set defans = "1"
     while (1)
 	ls -l
-	set fn = *
 
 	echo ""
 	echo "Please choose one:"