Fix for new octal syntax

pull/10943/head
Toshio Kuratomi 10 years ago
parent 79fe1901f6
commit 7733dc7bb5

@ -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)

Loading…
Cancel
Save