Skip to content

Instantly share code, notes, and snippets.

@bokutin
Last active August 29, 2015 13:56
Show Gist options
  • Save bokutin/8819173 to your computer and use it in GitHub Desktop.
Save bokutin/8819173 to your computer and use it in GitHub Desktop.
OpenVPN Temporary directory (--tmp-dir) fails with ...
Options error: Temporary directory (--tmp-dir) fails with 'C:\Documents and Settings\日本語\Local Settings\Temp\': No such file or directory
などとなり、 OpenVPN GUI がうんともすんとも言わない場合がある。
Windows でユーザー名を変更しても Documents and Settings\日本語 のフォルダは変わらず維持されて、変えるのは大変だと思う。
(クリーンにやるには、ほぼ再インストール?)
.ovpn の設定ファイルの方に tmp-dir を足せば、環境変数のTMPDIRなどよりそちらが優先され、手元の環境では凌げた。
C:\Program Files\OpenVPN\temp を作っておいて
接続設定.ovpn の末尾に
tmp-dir C:/Progra~1/OpenVPN/temp
を足して再接続。
CreateFileW 系はここでも苦痛だ。割と有名なフリーソフトなども CreateFileA 相当を使っていて、未に日本語ユーザー名だとトラブる。
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment