You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by ms...@apache.org on 2005/06/08 18:18:28 UTC

svn commit: r189604 - /spamassassin/trunk/t/SATest.pm

Author: mss
Date: Wed Jun  8 09:18:26 2005
New Revision: 189604

URL: http://svn.apache.org/viewcvs?rev=189604&view=rev
Log:
Use platform-independent File::Spec->tmpdir() to determine temp directory.  Fall back to the log dir as before.

Modified:
    spamassassin/trunk/t/SATest.pm

Modified: spamassassin/trunk/t/SATest.pm
URL: http://svn.apache.org/viewcvs/spamassassin/trunk/t/SATest.pm?rev=189604&r1=189603&r2=189604&view=diff
==============================================================================
--- spamassassin/trunk/t/SATest.pm (original)
+++ spamassassin/trunk/t/SATest.pm Wed Jun  8 09:18:26 2005
@@ -676,7 +676,7 @@
 sub mk_safe_tmpdir {
   return $safe_tmpdir if defined($safe_tmpdir);
 
-  my $dir = $ENV{TMPDIR} || '/tmp';
+  my $dir = File::Spec->tmpdir() || 'log';
 
   # be a little paranoid, since we're using a public tmp dir and
   # are exposed to race conditions