Hi Andrew, On 2009-11-12 21:52, Andrew Ross wrote: > Hi Alan, > > Thank's for reminding me about this. To do this right is, as you say, > not trivial. I think we need to write a wrapper function which > we use in the code, and which in turn will use mkstemp or some > windows equivalent. > > Note that your windows "fix" uses mktemp which is itself not > secure. Also, I understand that tmpfile which we use elsewhere in the > code can have some issues. > > Finally, mkstemp does not (as far as I know) add a suitable path on > or honour TMP / TEMP / TMPFILE variables, so we'd need to add code > to support this. > > Hmmm. Why, after all these years, has no-one got this right? >
In the past I have seen that opening a temporary file on Windows did not honour any of the environment variables you mention. The result was, in fact, that a temporary file would get opened in the root directory of the disk the program was running on. This failed when that disk was a network disk, because I was not allowed to write there. It may have improved since then, but I just wanted to make sure this is not getting an issue again. Regards, Arjen ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Plplot-devel mailing list Plplot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-devel