[Rt-commit] r19041 - in rt/3.8/trunk: sbin

sartak at bestpractical.com sartak at bestpractical.com
Fri Apr 3 14:30:03 EDT 2009


Author: sartak
Date: Fri Apr  3 14:30:03 2009
New Revision: 19041

Modified:
   rt/3.8/trunk/   (props changed)
   rt/3.8/trunk/sbin/rt-email-dashboards.in

Log:
 r81727 at onn:  sartak | 2009-04-03 14:29:48 -0400
 Use the old interface for tempdir


Modified: rt/3.8/trunk/sbin/rt-email-dashboards.in
==============================================================================
--- rt/3.8/trunk/sbin/rt-email-dashboards.in	(original)
+++ rt/3.8/trunk/sbin/rt-email-dashboards.in	Fri Apr  3 14:30:03 2009
@@ -86,6 +86,7 @@
 use HTML::RewriteAttributes::Links;
 use MIME::Types;
 use POSIX 'tzset';
+use File::Temp 'tempdir';
 
 # Clean out all the nasties from the environment
 CleanEnv();
@@ -370,14 +371,13 @@
 
             # user may not have permissions on the data directory, so create a
             # new one
-            require File::Temp;
-            $data_dir = File::Temp->newdir;
+            $data_dir = tempdir(CLEANUP => 1);
 
             $mason = HTML::Mason::Interp->new(
                 RT::Interface::Web::Handler->DefaultHandlerArgs,
                 out_method => \$outbuf,
                 autohandler_name => '', # disable forced login and more
-                data_dir => "$data_dir", # stringify since Mason doesn't
+                data_dir => $data_dir,
             );
         }
         return $mason;


More information about the Rt-commit mailing list