pct / tunnelblick

Automatically exported from code.google.com/p/tunnelblick
0 stars 0 forks source link

openvpnstart assumes users home path begins with "/Users" #163

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
When checking for permissions, openvpnstart blindly assumes the path of the 
users home folder stars with "/Users". When this is not true - remotely mounted 
homedir or moved to another path - the openvpnstart fails with:

 Tunnelblick: openvpnstart status #241: 2010-12-15 09:49:03.875 openvpnstart[5936:903] File /Volumes/Users/space/Library/Application Support/Tunnelblick/Configurations/robd.tblk/Contents/Resources has permissions: 755, is owned by 501:20 and needs repair

There are multiple places where this assumption is, like line 1223 in 3.1 
branch etc. It really should check the path against the HOME environment 
variable.

Thanks for fixing and sorry for not providing a patch ;-)

Petr

Original issue reported on code.google.com by spaceboy...@gmail.com on 15 Dec 2010 at 10:28

GoogleCodeExporter commented 9 years ago
Thanks for pointing this out so clearly. Fixing it shouldn't be too difficult.

Original comment by jkbull...@gmail.com on 15 Dec 2010 at 11:26

GoogleCodeExporter commented 9 years ago
I have committed a fix for this as part of r1233. These fixes will be included 
in the next bugfix release.

A temporary workaround is to make the configuration "shared".

Original comment by jkbull...@gmail.com on 15 Dec 2010 at 11:40

GoogleCodeExporter commented 9 years ago

Original comment by jkbull...@gmail.com on 15 Dec 2010 at 11:40