nss-pam-ldapd branch master updated. 0.9.10-1-gbfcf002
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
nss-pam-ldapd branch master updated. 0.9.10-1-gbfcf002
- From: Commits of the nss-pam-ldapd project <nss-pam-ldapd-commits [at] lists.arthurdejong.org>
- To: nss-pam-ldapd-commits [at] lists.arthurdejong.org
- Reply-to: nss-pam-ldapd-users [at] lists.arthurdejong.org
- Subject: nss-pam-ldapd branch master updated. 0.9.10-1-gbfcf002
- Date: Wed, 5 Sep 2018 21:40:52 +0200 (CEST)
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "nss-pam-ldapd".
The branch, master has been updated
via bfcf0025b6ba264e6c0c1899d9de2bad8f39ee1a (commit)
from bfe06969aeef0c9ef419ea6e5bf930962ed08b96 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
https://arthurdejong.org/git/nss-pam-ldapd/commit/?id=bfcf0025b6ba264e6c0c1899d9de2bad8f39ee1a
commit bfcf0025b6ba264e6c0c1899d9de2bad8f39ee1a
Author: Mizunashi Mana <mizunashi-mana@noreply.git>
Date: Wed Sep 5 20:06:31 2018 +0900
Fix crash in chsh.ldap
Specify result type of getusershell.
Closes https://github.com/arthurdejong/nss-pam-ldapd/pull/31
diff --git a/utils/shells.py b/utils/shells.py
index dcabfaf..92dba2f 100644
--- a/utils/shells.py
+++ b/utils/shells.py
@@ -28,9 +28,11 @@ import sys
def list_shells():
"""List the shells from /etc/shells."""
libc = ctypes.CDLL(ctypes.util.find_library("c"))
+ getusershell = libc.getusershell
+ getusershell.restype = ctypes.c_char_p
libc.setusershell()
while True:
- shell = ctypes.c_char_p(libc.getusershell()).value
+ shell = getusershell()
if not shell:
break
yield shell
-----------------------------------------------------------------------
Summary of changes:
utils/shells.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
hooks/post-receive
--
nss-pam-ldapd
--
To unsubscribe send an email to
nss-pam-ldapd-commits-unsubscribe@lists.arthurdejong.org or see
https://lists.arthurdejong.org/nss-pam-ldapd-commits/
- nss-pam-ldapd branch master updated. 0.9.10-1-gbfcf002,
Commits of the nss-pam-ldapd project