mirror of
https://github.com/sshuttle/sshuttle.git
synced 2024-11-29 11:23:09 +01:00
Be more explicit
This commit is contained in:
parent
a3fbf860ff
commit
7e0c1534df
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user