From 7e0c1534df464b0458d5694736bb0f08dc9467e6 Mon Sep 17 00:00:00 2001 From: Brian May Date: Sun, 6 Dec 2015 10:58:51 +1100 Subject: [PATCH] Be more explicit --- sshuttle/firewall.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sshuttle/firewall.py b/sshuttle/firewall.py index 285d1fe..ecee821 100644 --- a/sshuttle/firewall.py +++ b/sshuttle/firewall.py @@ -38,7 +38,7 @@ def rewrite_etc_hosts(port): f.write('%-30s %s\n' % ('%s %s' % (ip, name), APPEND)) f.close() - if st: + if st is not None: os.chown(tmpname, st.st_uid, st.st_gid) os.chmod(tmpname, st.st_mode) else: