A more secure way to handle temp file by not closing it at all, as suggested by Mihai.
A more secure way to handle temp file by not closing it at all, as suggested by Mihai.

git-svn-id: cc674101e2b794ddc2100b657215d55256e3fd48@39777 fe389314-cf27-0410-b35b-8c050e845b92

jhunkeler/hstcal,jhunkeler/hstcal,jhunkeler/hstcal