Mercurial > kallithea
changeset 5556:92ebcf7d8042 stable
auth_pam: fix crash caused by colliding variable names
Regression introduced in 03afa7766ac7.
author | Mads Kiilerich <madski@unity3d.com> |
---|---|
date | Tue, 20 Oct 2015 20:15:04 +0200 |
parents | 03975e4a8532 |
children | f569f44a8a89 |
files | kallithea/lib/auth_modules/auth_pam.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/kallithea/lib/auth_modules/auth_pam.py Sun Oct 11 22:09:42 2015 +0200 +++ b/kallithea/lib/auth_modules/auth_pam.py Tue Oct 20 20:15:04 2015 +0200 @@ -123,9 +123,9 @@ } try: - user_data = pwd.getpwnam(username) + user_pw_data = pwd.getpwnam(username) regex = settings["gecos"] - match = re.search(regex, user_data.pw_gecos) + match = re.search(regex, user_pw_data.pw_gecos) if match: user_data["firstname"] = match.group('first_name') user_data["lastname"] = match.group('last_name')