mirror of
https://github.com/sshuttle/sshuttle.git
synced 2025-02-18 03:11:36 +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.write('%-30s %s\n' % ('%s %s' % (ip, name), APPEND))
|
||||||
f.close()
|
f.close()
|
||||||
|
|
||||||
if st:
|
if st is not None:
|
||||||
os.chown(tmpname, st.st_uid, st.st_gid)
|
os.chown(tmpname, st.st_uid, st.st_gid)
|
||||||
os.chmod(tmpname, st.st_mode)
|
os.chmod(tmpname, st.st_mode)
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user