Index: openacs-4/packages/acs-tcl/tcl/utilities-procs.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-tcl/tcl/utilities-procs.tcl,v
diff -u -r1.133.2.35 -r1.133.2.36
--- openacs-4/packages/acs-tcl/tcl/utilities-procs.tcl	1 Apr 2014 18:37:32 -0000	1.133.2.35
+++ openacs-4/packages/acs-tcl/tcl/utilities-procs.tcl	6 Apr 2014 11:34:04 -0000	1.133.2.36
@@ -4839,9 +4839,12 @@
     }
 }
 
-ad_proc ad_tmpnam {{template "oacs-XXXXXX"}} {
+ad_proc ad_tmpnam {{template ""}} {
     A stub function to replace the deprecated "ns_tmpnam", 
     which uses the deprecated C-library function "tmpnam()"
 } {
+    if {$template eq ""} {
+	set template [ns_config ns/parameters tmpdir]/oacs-XXXXXX
+    }
     ns_mktemp $template
 }