Hi,
This could work for you as a workaround. We've fixed that overloading that function adding this code to one of our *-init.tcl procs:
if { [ns_info platform] == "win32"} {
rename ns_tmpnam aol_tmpnam
proc ns_tmpnam {} {
set tmp [aol_tmpnam]
set dir [parameter::get_from_package_key -package_key acs-subsite -parameter TmpDir]
return "${dir}${tmp}"
}
}
You just need to make sure that the MainSite parameter TmpDir in the site-map has the right path (i.e. C:\temp ).
In Windows, according to their documentation, the C function tmpnam() is deprecated and is not safe. They recommend to use tempnam(dir,filename) instead where you can specify the path and the filename.
Hope that helps!