After all the discussions regarding the --tmp-dir patch [1], I have now condenced everything into one single patch. The main change is that the new win_get_tempdir() function is simplified by using GetTempPath() instead.
On Windows the fallback solution, if GetTempPath() returns NULL, is now to behave as before - write temporary files in the directory where OpenVPN was started. [1] <http://thread.gmane.org/gmane.network.openvpn.devel/4561> David Sommerseth (1): Change the default --tmp-dir path to a more suitable path options.c | 18 ++++++++++++++---- win32.c | 19 +++++++++++++++++++ win32.h | 3 +++ 3 files changed, 36 insertions(+), 4 deletions(-) -- 1.7.4.2