Commit 7733dc7b by Toshio Kuratomi

Fix for new octal syntax

parent 79fe1901
...@@ -370,7 +370,7 @@ class Connection(ConnectionBase): ...@@ -370,7 +370,7 @@ class Connection(ConnectionBase):
# the file will be moved into place rather than cleaned up. # the file will be moved into place rather than cleaned up.
tmp_keyfile = tempfile.NamedTemporaryFile(dir=key_dir, delete=False) tmp_keyfile = tempfile.NamedTemporaryFile(dir=key_dir, delete=False)
os.chmod(tmp_keyfile.name, key_stat.st_mode & 07777) os.chmod(tmp_keyfile.name, key_stat.st_mode & 0o7777)
os.chown(tmp_keyfile.name, key_stat.st_uid, key_stat.st_gid) os.chown(tmp_keyfile.name, key_stat.st_uid, key_stat.st_gid)
self._save_ssh_host_keys(tmp_keyfile.name) self._save_ssh_host_keys(tmp_keyfile.name)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment