From 7b90bc8d4af39858b33e0f80fbd27c6a44e0f7d8 Mon Sep 17 00:00:00 2001 From: Colin Guthrie Date: Tue, 3 Feb 2015 18:02:12 +0000 Subject: openssh: Fix python copy/paste error. Introduced in d5148ffbb0514c37893002e4988c5f7f379586bf --- modules/openssh/templates/ldap-sshkey2file.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules') 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) -- cgit v1.2.1