aboutsummaryrefslogtreecommitdiffstats
path: root/modules/openssh
diff options
context:
space:
mode:
Diffstat (limited to 'modules/openssh')
-rwxr-xr-xmodules/openssh/templates/ldap-sshkey2file.py2
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)