Scott Kuhl df98790206 Fix incorrect permissions for /etc/hosts
If we modify /etc/hosts, we read/copy the ownership and permissions
from the existing /etc/hosts before we make our new temporary file
which will eventually overwrite /etc/hosts. If we fail to retrieve the
permissions of the existing /etc/hosts file, we made the temporary
file owned by root 0o600 permissions. It should have 0o644 permissions
so that /etc/hosts has the correct permissions once we rename it.

It is unlikely many encoutered this bug since most machines have
/etc/hosts prior to sshuttle running and we should be able to read the
permission/ownership of that existing file.
2022-06-26 09:36:13 +10:00
..
2022-04-24 16:43:07 +10:00
2016-01-17 10:21:21 +11:00
2022-04-24 16:43:07 +10:00
2021-07-12 11:24:29 -04:00
2022-04-24 16:11:14 +10:00
2022-04-24 17:37:10 +10:00
2022-04-24 17:40:43 +10:00
2022-04-24 17:37:10 +10:00