Honour umask, let temporary key files inherit original's permissions.
authorGuus Sliepen <guus@tinc-vpn.org>
Mon, 22 Jul 2013 20:58:13 +0000 (22:58 +0200)
committerGuus Sliepen <guus@tinc-vpn.org>
Mon, 22 Jul 2013 21:05:07 +0000 (23:05 +0200)
During the init command, tinc changed the umask to 077 when writing the public
and private key files, to prevent the temporary copies from being world
readable. However, subsequently created files would therefore also be
unreadable for others. Now we don't change the umask anymore, therefore
allowing the user to choose whether the files are world readable or not by
setting the umask as desired. The private key files are still made unreadable
for others of course. Temporary files now inherit the permissions of the
original, and the tinc-up script's permissions now also honour the umask.


No differences found