diff options
-rwxr-xr-x | modules/openssh/templates/ldap-sshkey2file.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/openssh/templates/ldap-sshkey2file.py b/modules/openssh/templates/ldap-sshkey2file.py index 15c27270..1c474038 100755 --- a/modules/openssh/templates/ldap-sshkey2file.py +++ b/modules/openssh/templates/ldap-sshkey2file.py @@ -86,7 +86,7 @@ def write_keys(keys, user, uid, gid): if fromldap != fromfile: (fd, tmpname) = tempfile.mkstemp('', 'ldap-sshkey2file-') os.write(fd, fromldap); - f.close() + os.close(fd) os.chmod(tmpname, 0600) os.chown(tmpname, uid, gid) shutil.move(tmpname, keyfile) |