• Avery Pennarun's avatar
    firewall: preserve permissions on /etc/hosts · 77cf37e0
    Avery Pennarun authored
    Pointed out by nisc on github.  If people use an unusual umask or have funny
    permissions on /etc/hosts, sshuttle would screw it up.
    
    We also use hardlinks to atomically backup the original /etc/hosts to
    /etc/hosts.sbak the first time, rather than manually copying it.  Not sure
    why I didn't think of that before.
    77cf37e0
firewall.py 8.08 KB