Skip to content

Commit 7e0c153

Browse files
committed
Be more explicit
1 parent a3fbf86 commit 7e0c153

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sshuttle/firewall.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def rewrite_etc_hosts(port):
3838
f.write('%-30s %s\n' % ('%s %s' % (ip, name), APPEND))
3939
f.close()
4040

41-
if st:
41+
if st is not None:
4242
os.chown(tmpname, st.st_uid, st.st_gid)
4343
os.chmod(tmpname, st.st_mode)
4444
else:

0 commit comments

Comments
 (0)